diff options
Diffstat (limited to 'drivers/regulator')
-rw-r--r-- | drivers/regulator/userspace-consumer.c | 13 | ||||
-rw-r--r-- | drivers/regulator/virtual.c | 12 |
2 files changed, 2 insertions, 23 deletions
diff --git a/drivers/regulator/userspace-consumer.c b/drivers/regulator/userspace-consumer.c index fc6655146999..518667ef9a0d 100644 --- a/drivers/regulator/userspace-consumer.c +++ b/drivers/regulator/userspace-consumer.c | |||
@@ -185,18 +185,7 @@ static struct platform_driver regulator_userspace_consumer_driver = { | |||
185 | }, | 185 | }, |
186 | }; | 186 | }; |
187 | 187 | ||
188 | 188 | module_platform_driver(regulator_userspace_consumer_driver); | |
189 | static int __init regulator_userspace_consumer_init(void) | ||
190 | { | ||
191 | return platform_driver_register(®ulator_userspace_consumer_driver); | ||
192 | } | ||
193 | module_init(regulator_userspace_consumer_init); | ||
194 | |||
195 | static void __exit regulator_userspace_consumer_exit(void) | ||
196 | { | ||
197 | platform_driver_unregister(®ulator_userspace_consumer_driver); | ||
198 | } | ||
199 | module_exit(regulator_userspace_consumer_exit); | ||
200 | 189 | ||
201 | MODULE_AUTHOR("Mike Rapoport <mike@compulab.co.il>"); | 190 | MODULE_AUTHOR("Mike Rapoport <mike@compulab.co.il>"); |
202 | MODULE_DESCRIPTION("Userspace consumer for voltage and current regulators"); | 191 | MODULE_DESCRIPTION("Userspace consumer for voltage and current regulators"); |
diff --git a/drivers/regulator/virtual.c b/drivers/regulator/virtual.c index 858c1f861ba5..ee0b161c998f 100644 --- a/drivers/regulator/virtual.c +++ b/drivers/regulator/virtual.c | |||
@@ -352,17 +352,7 @@ static struct platform_driver regulator_virtual_consumer_driver = { | |||
352 | }, | 352 | }, |
353 | }; | 353 | }; |
354 | 354 | ||
355 | static int __init regulator_virtual_consumer_init(void) | 355 | module_platform_driver(regulator_virtual_consumer_driver); |
356 | { | ||
357 | return platform_driver_register(®ulator_virtual_consumer_driver); | ||
358 | } | ||
359 | module_init(regulator_virtual_consumer_init); | ||
360 | |||
361 | static void __exit regulator_virtual_consumer_exit(void) | ||
362 | { | ||
363 | platform_driver_unregister(®ulator_virtual_consumer_driver); | ||
364 | } | ||
365 | module_exit(regulator_virtual_consumer_exit); | ||
366 | 356 | ||
367 | MODULE_AUTHOR("Mark Brown <broonie@opensource.wolfsonmicro.com>"); | 357 | MODULE_AUTHOR("Mark Brown <broonie@opensource.wolfsonmicro.com>"); |
368 | MODULE_DESCRIPTION("Virtual regulator consumer"); | 358 | MODULE_DESCRIPTION("Virtual regulator consumer"); |