diff options
Diffstat (limited to 'drivers/power/ds2781_battery.c')
-rw-r--r-- | drivers/power/ds2781_battery.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/drivers/power/ds2781_battery.c b/drivers/power/ds2781_battery.c index 7a1ff4e4cf9a..88e304aea2dc 100644 --- a/drivers/power/ds2781_battery.c +++ b/drivers/power/ds2781_battery.c | |||
@@ -834,20 +834,7 @@ static struct platform_driver ds2781_battery_driver = { | |||
834 | .probe = ds2781_battery_probe, | 834 | .probe = ds2781_battery_probe, |
835 | .remove = __devexit_p(ds2781_battery_remove), | 835 | .remove = __devexit_p(ds2781_battery_remove), |
836 | }; | 836 | }; |
837 | 837 | module_platform_driver(ds2781_battery_driver); | |
838 | static int __init ds2781_battery_init(void) | ||
839 | { | ||
840 | return platform_driver_register(&ds2781_battery_driver); | ||
841 | } | ||
842 | |||
843 | static void __exit ds2781_battery_exit(void) | ||
844 | { | ||
845 | platform_driver_unregister(&ds2781_battery_driver); | ||
846 | } | ||
847 | |||
848 | module_init(ds2781_battery_init); | ||
849 | module_exit(ds2781_battery_exit); | ||
850 | |||
851 | 838 | ||
852 | MODULE_LICENSE("GPL"); | 839 | MODULE_LICENSE("GPL"); |
853 | MODULE_AUTHOR("Renata Sayakhova <renata@oktetlabs.ru>"); | 840 | MODULE_AUTHOR("Renata Sayakhova <renata@oktetlabs.ru>"); |