Skip to contentSkip to conversation

regulator: max77693: Add missing .owner field in regulator_desc

PATCH Applied Axel Lin 2 participants 2 messages Dec 24, 2013

Subsystems (2)
lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 regulator: max77693: Add missing .owner field in regulator_desc

Add missing .owner field in regulator_desc, which is used for refcounting.

---
 drivers/regulator/max77693.c | 1 +
 1 file changed, 1 insertion(+)
drivers/regulator/max77693.c +1 -0
index feb20bf..5fb899f 100644
@@ -138,6 +138,7 @@ static struct regulator_ops max77693_charger_ops = {
 	.n_voltages	= 4,					\
 	.ops		= &max77693_safeout_ops,		\
 	.type		= REGULATOR_VOLTAGE,			\
+	.owner		= THIS_MODULE,				\
 	.volt_table	= max77693_safeout_table,		\
 	.vsel_reg	= MAX77693_CHG_REG_SAFEOUT_CTRL,	\
 	.vsel_mask	= SAFEOUT_CTRL_SAFEOUT##_num##_MASK,	\
Signature · 1 line
1.8.1.2
maintainer Applied
#1 lore raw
Quoted 1 line · Axel Lin

Add missing .owner field in regulator_desc, which is used for refcounting.

Applied, thanks.