diff options
-rw-r--r-- | drivers/regulator/wm8994-regulator.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/drivers/regulator/wm8994-regulator.c b/drivers/regulator/wm8994-regulator.c index 6ff872342648..5115881fac42 100644 --- a/drivers/regulator/wm8994-regulator.c +++ b/drivers/regulator/wm8994-regulator.c | |||
@@ -162,23 +162,7 @@ static struct platform_driver wm8994_ldo_driver = { | |||
162 | }, | 162 | }, |
163 | }; | 163 | }; |
164 | 164 | ||
165 | static int __init wm8994_ldo_init(void) | 165 | module_platform_driver(wm8994_ldo_driver); |
166 | { | ||
167 | int ret; | ||
168 | |||
169 | ret = platform_driver_register(&wm8994_ldo_driver); | ||
170 | if (ret != 0) | ||
171 | pr_err("Failed to register Wm8994 GP LDO driver: %d\n", ret); | ||
172 | |||
173 | return ret; | ||
174 | } | ||
175 | subsys_initcall(wm8994_ldo_init); | ||
176 | |||
177 | static void __exit wm8994_ldo_exit(void) | ||
178 | { | ||
179 | platform_driver_unregister(&wm8994_ldo_driver); | ||
180 | } | ||
181 | module_exit(wm8994_ldo_exit); | ||
182 | 166 | ||
183 | /* Module information */ | 167 | /* Module information */ |
184 | MODULE_AUTHOR("Mark Brown <broonie@opensource.wolfsonmicro.com>"); | 168 | MODULE_AUTHOR("Mark Brown <broonie@opensource.wolfsonmicro.com>"); |