diff options
Diffstat (limited to 'drivers/power/gpio-charger.c')
-rw-r--r-- | drivers/power/gpio-charger.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/power/gpio-charger.c b/drivers/power/gpio-charger.c index a64b8854cfd5..8672c9177dd7 100644 --- a/drivers/power/gpio-charger.c +++ b/drivers/power/gpio-charger.c | |||
@@ -185,17 +185,7 @@ static struct platform_driver gpio_charger_driver = { | |||
185 | }, | 185 | }, |
186 | }; | 186 | }; |
187 | 187 | ||
188 | static int __init gpio_charger_init(void) | 188 | module_platform_driver(gpio_charger_driver); |
189 | { | ||
190 | return platform_driver_register(&gpio_charger_driver); | ||
191 | } | ||
192 | module_init(gpio_charger_init); | ||
193 | |||
194 | static void __exit gpio_charger_exit(void) | ||
195 | { | ||
196 | platform_driver_unregister(&gpio_charger_driver); | ||
197 | } | ||
198 | module_exit(gpio_charger_exit); | ||
199 | 189 | ||
200 | MODULE_AUTHOR("Lars-Peter Clausen <lars@metafoo.de>"); | 190 | MODULE_AUTHOR("Lars-Peter Clausen <lars@metafoo.de>"); |
201 | MODULE_DESCRIPTION("Driver for chargers which report their online status through a GPIO"); | 191 | MODULE_DESCRIPTION("Driver for chargers which report their online status through a GPIO"); |