power_supply: Convert drivers/power/* to use module_platform_driver()
[deliverable/linux.git] / drivers / power / ds2760_battery.c
index cda03dae75f406009136610ea666a7ca20446198..545874b1df9ebfa4d14bdb2b4b04f07f274cb77e 100644 (file)
@@ -641,18 +641,7 @@ static struct platform_driver ds2760_battery_driver = {
        .resume   = ds2760_battery_resume,
 };
 
-static int __init ds2760_battery_init(void)
-{
-       return platform_driver_register(&ds2760_battery_driver);
-}
-
-static void __exit ds2760_battery_exit(void)
-{
-       platform_driver_unregister(&ds2760_battery_driver);
-}
-
-module_init(ds2760_battery_init);
-module_exit(ds2760_battery_exit);
+module_platform_driver(ds2760_battery_driver);
 
 MODULE_LICENSE("GPL");
 MODULE_AUTHOR("Szabolcs Gyurko <szabolcs.gyurko@tlt.hu>, "
This page took 0.02455 seconds and 5 git commands to generate.