diff options
Diffstat (limited to 'drivers/power/ds2780_battery.c')
-rw-r--r-- | drivers/power/ds2780_battery.c | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/drivers/power/ds2780_battery.c b/drivers/power/ds2780_battery.c index 91a783d72360..de31cae1ba53 100644 --- a/drivers/power/ds2780_battery.c +++ b/drivers/power/ds2780_battery.c | |||
@@ -841,29 +841,17 @@ static int __devexit ds2780_battery_remove(struct platform_device *pdev) | |||
841 | return 0; | 841 | return 0; |
842 | } | 842 | } |
843 | 843 | ||
844 | MODULE_ALIAS("platform:ds2780-battery"); | ||
845 | |||
846 | static struct platform_driver ds2780_battery_driver = { | 844 | static struct platform_driver ds2780_battery_driver = { |
847 | .driver = { | 845 | .driver = { |
848 | .name = "ds2780-battery", | 846 | .name = "ds2780-battery", |
849 | }, | 847 | }, |
850 | .probe = ds2780_battery_probe, | 848 | .probe = ds2780_battery_probe, |
851 | .remove = ds2780_battery_remove, | 849 | .remove = __devexit_p(ds2780_battery_remove), |
852 | }; | 850 | }; |
853 | 851 | ||
854 | static int __init ds2780_battery_init(void) | 852 | module_platform_driver(ds2780_battery_driver); |
855 | { | ||
856 | return platform_driver_register(&ds2780_battery_driver); | ||
857 | } | ||
858 | |||
859 | static void __exit ds2780_battery_exit(void) | ||
860 | { | ||
861 | platform_driver_unregister(&ds2780_battery_driver); | ||
862 | } | ||
863 | |||
864 | module_init(ds2780_battery_init); | ||
865 | module_exit(ds2780_battery_exit); | ||
866 | 853 | ||
867 | MODULE_LICENSE("GPL"); | 854 | MODULE_LICENSE("GPL"); |
868 | MODULE_AUTHOR("Clifton Barnes <cabarnes@indesign-llc.com>"); | 855 | MODULE_AUTHOR("Clifton Barnes <cabarnes@indesign-llc.com>"); |
869 | MODULE_DESCRIPTION("Maxim/Dallas DS2780 Stand-Alone Fuel Gauage IC driver"); | 856 | MODULE_DESCRIPTION("Maxim/Dallas DS2780 Stand-Alone Fuel Gauage IC driver"); |
857 | MODULE_ALIAS("platform:ds2780-battery"); | ||