diff options
-rw-r--r-- | drivers/power/da9052-battery.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/power/da9052-battery.c b/drivers/power/da9052-battery.c index daf52a4b17bb..a5f6a0ec1572 100644 --- a/drivers/power/da9052-battery.c +++ b/drivers/power/da9052-battery.c | |||
@@ -647,18 +647,7 @@ static struct platform_driver da9052_bat_driver = { | |||
647 | .owner = THIS_MODULE, | 647 | .owner = THIS_MODULE, |
648 | }, | 648 | }, |
649 | }; | 649 | }; |
650 | 650 | module_platform_driver(da9052_bat_driver); | |
651 | static int __init da9052_bat_init(void) | ||
652 | { | ||
653 | return platform_driver_register(&da9052_bat_driver); | ||
654 | } | ||
655 | module_init(da9052_bat_init); | ||
656 | |||
657 | static void __exit da9052_bat_exit(void) | ||
658 | { | ||
659 | platform_driver_unregister(&da9052_bat_driver); | ||
660 | } | ||
661 | module_exit(da9052_bat_exit); | ||
662 | 651 | ||
663 | MODULE_DESCRIPTION("DA9052 BAT Device Driver"); | 652 | MODULE_DESCRIPTION("DA9052 BAT Device Driver"); |
664 | MODULE_AUTHOR("David Dajun Chen <dchen@diasemi.com>"); | 653 | MODULE_AUTHOR("David Dajun Chen <dchen@diasemi.com>"); |