diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-03-04 23:01:36 -0500 |
---|---|---|
committer | Anton Vorontsov <anton@enomsg.org> | 2013-04-01 02:04:20 -0400 |
commit | 4420dc200084120955a7b81a5f012d6b4ab0974d (patch) | |
tree | 4d0cc8570af981571b01e9d4f8f113841d83fd31 /drivers/power/twl4030_charger.c | |
parent | 9c1d1af0cf78a7e8967194a4ee424b0742a52921 (diff) |
twl4030_charger: Use module_platform_driver_probe()
This patch uses module_platform_driver_probe() macro which makes the code
smaller and simpler.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Anton Vorontsov <anton@enomsg.org>
Diffstat (limited to 'drivers/power/twl4030_charger.c')
-rw-r--r-- | drivers/power/twl4030_charger.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/power/twl4030_charger.c b/drivers/power/twl4030_charger.c index a69d0d11b540..bed458172dd2 100644 --- a/drivers/power/twl4030_charger.c +++ b/drivers/power/twl4030_charger.c | |||
@@ -636,17 +636,7 @@ static struct platform_driver twl4030_bci_driver = { | |||
636 | .remove = __exit_p(twl4030_bci_remove), | 636 | .remove = __exit_p(twl4030_bci_remove), |
637 | }; | 637 | }; |
638 | 638 | ||
639 | static int __init twl4030_bci_init(void) | 639 | module_platform_driver_probe(twl4030_bci_driver, twl4030_bci_probe); |
640 | { | ||
641 | return platform_driver_probe(&twl4030_bci_driver, twl4030_bci_probe); | ||
642 | } | ||
643 | module_init(twl4030_bci_init); | ||
644 | |||
645 | static void __exit twl4030_bci_exit(void) | ||
646 | { | ||
647 | platform_driver_unregister(&twl4030_bci_driver); | ||
648 | } | ||
649 | module_exit(twl4030_bci_exit); | ||
650 | 640 | ||
651 | MODULE_AUTHOR("Gražvydas Ignotas"); | 641 | MODULE_AUTHOR("Gražvydas Ignotas"); |
652 | MODULE_DESCRIPTION("TWL4030 Battery Charger Interface driver"); | 642 | MODULE_DESCRIPTION("TWL4030 Battery Charger Interface driver"); |