power_supply: Convert drivers/power/* to use module_platform_driver()
[deliverable/linux.git] / drivers / power / jz4740-battery.c
index 763f894ed18815d5e54f9cd1359d42eab03f44ea..6b77029e6bdb604ad381f199da9e86ba4f30ac72 100644 (file)
@@ -441,17 +441,7 @@ static struct platform_driver jz_battery_driver = {
        },
 };
 
-static int __init jz_battery_init(void)
-{
-       return platform_driver_register(&jz_battery_driver);
-}
-module_init(jz_battery_init);
-
-static void __exit jz_battery_exit(void)
-{
-       platform_driver_unregister(&jz_battery_driver);
-}
-module_exit(jz_battery_exit);
+module_platform_driver(jz_battery_driver);
 
 MODULE_ALIAS("platform:jz4740-battery");
 MODULE_LICENSE("GPL");
This page took 0.024935 seconds and 5 git commands to generate.