mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-02 23:27:06 +00:00
regulator: max77620: Add missing .owner field in regulator_desc
Add missing .owner field in regulator_desc, which is used for refcounting. Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
ea7b971cd6
commit
96173b8c8b
1 changed files with 2 additions and 0 deletions
|
@ -690,6 +690,7 @@ static const struct regulator_ops max77620_regulator_ops = {
|
||||||
.active_discharge_mask = MAX77620_SD_CFG1_ADE_MASK, \
|
.active_discharge_mask = MAX77620_SD_CFG1_ADE_MASK, \
|
||||||
.active_discharge_reg = MAX77620_REG_##_id##_CFG, \
|
.active_discharge_reg = MAX77620_REG_##_id##_CFG, \
|
||||||
.type = REGULATOR_VOLTAGE, \
|
.type = REGULATOR_VOLTAGE, \
|
||||||
|
.owner = THIS_MODULE, \
|
||||||
}, \
|
}, \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -721,6 +722,7 @@ static const struct regulator_ops max77620_regulator_ops = {
|
||||||
.active_discharge_mask = MAX77620_LDO_CFG2_ADE_MASK, \
|
.active_discharge_mask = MAX77620_LDO_CFG2_ADE_MASK, \
|
||||||
.active_discharge_reg = MAX77620_REG_##_id##_CFG2, \
|
.active_discharge_reg = MAX77620_REG_##_id##_CFG2, \
|
||||||
.type = REGULATOR_VOLTAGE, \
|
.type = REGULATOR_VOLTAGE, \
|
||||||
|
.owner = THIS_MODULE, \
|
||||||
}, \
|
}, \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue