diff options
Diffstat (limited to 'drivers/regulator/anatop-regulator.c')
-rw-r--r-- | drivers/regulator/anatop-regulator.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/regulator/anatop-regulator.c b/drivers/regulator/anatop-regulator.c index 17499a55113d..81fd606e47bc 100644 --- a/drivers/regulator/anatop-regulator.c +++ b/drivers/regulator/anatop-regulator.c | |||
@@ -138,9 +138,10 @@ static int __devinit anatop_regulator_probe(struct platform_device *pdev) | |||
138 | rdesc->type = REGULATOR_VOLTAGE; | 138 | rdesc->type = REGULATOR_VOLTAGE; |
139 | rdesc->owner = THIS_MODULE; | 139 | rdesc->owner = THIS_MODULE; |
140 | sreg->mfd = anatopmfd; | 140 | sreg->mfd = anatopmfd; |
141 | ret = of_property_read_u32(np, "reg", &sreg->control_reg); | 141 | ret = of_property_read_u32(np, "anatop-reg-offset", |
142 | &sreg->control_reg); | ||
142 | if (ret) { | 143 | if (ret) { |
143 | dev_err(dev, "no reg property set\n"); | 144 | dev_err(dev, "no anatop-reg-offset property set\n"); |
144 | goto anatop_probe_end; | 145 | goto anatop_probe_end; |
145 | } | 146 | } |
146 | ret = of_property_read_u32(np, "anatop-vol-bit-width", | 147 | ret = of_property_read_u32(np, "anatop-vol-bit-width", |
@@ -213,7 +214,7 @@ static struct of_device_id __devinitdata of_anatop_regulator_match_tbl[] = { | |||
213 | { /* end */ } | 214 | { /* end */ } |
214 | }; | 215 | }; |
215 | 216 | ||
216 | static struct platform_driver anatop_regulator = { | 217 | static struct platform_driver anatop_regulator_driver = { |
217 | .driver = { | 218 | .driver = { |
218 | .name = "anatop_regulator", | 219 | .name = "anatop_regulator", |
219 | .owner = THIS_MODULE, | 220 | .owner = THIS_MODULE, |
@@ -225,13 +226,13 @@ static struct platform_driver anatop_regulator = { | |||
225 | 226 | ||
226 | static int __init anatop_regulator_init(void) | 227 | static int __init anatop_regulator_init(void) |
227 | { | 228 | { |
228 | return platform_driver_register(&anatop_regulator); | 229 | return platform_driver_register(&anatop_regulator_driver); |
229 | } | 230 | } |
230 | postcore_initcall(anatop_regulator_init); | 231 | postcore_initcall(anatop_regulator_init); |
231 | 232 | ||
232 | static void __exit anatop_regulator_exit(void) | 233 | static void __exit anatop_regulator_exit(void) |
233 | { | 234 | { |
234 | platform_driver_unregister(&anatop_regulator); | 235 | platform_driver_unregister(&anatop_regulator_driver); |
235 | } | 236 | } |
236 | module_exit(anatop_regulator_exit); | 237 | module_exit(anatop_regulator_exit); |
237 | 238 | ||