summaryrefslogtreecommitdiff
path: root/drivers/power
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-03-05 13:01:36 +0900
committerAnton Vorontsov <anton@enomsg.org>2013-03-31 23:04:20 -0700
commit4420dc200084120955a7b81a5f012d6b4ab0974d (patch)
tree4d0cc8570af981571b01e9d4f8f113841d83fd31 /drivers/power
parent9c1d1af0cf78a7e8967194a4ee424b0742a52921 (diff)
downloadlinux-3.10-4420dc200084120955a7b81a5f012d6b4ab0974d.tar.gz
linux-3.10-4420dc200084120955a7b81a5f012d6b4ab0974d.tar.bz2
linux-3.10-4420dc200084120955a7b81a5f012d6b4ab0974d.zip
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')
-rw-r--r--drivers/power/twl4030_charger.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/power/twl4030_charger.c b/drivers/power/twl4030_charger.c
index a69d0d11b54..bed458172dd 100644
--- a/drivers/power/twl4030_charger.c
+++ b/drivers/power/twl4030_charger.c
@@ -636,17 +636,7 @@ static struct platform_driver twl4030_bci_driver = {
.remove = __exit_p(twl4030_bci_remove),
};
-static int __init twl4030_bci_init(void)
-{
- return platform_driver_probe(&twl4030_bci_driver, twl4030_bci_probe);
-}
-module_init(twl4030_bci_init);
-
-static void __exit twl4030_bci_exit(void)
-{
- platform_driver_unregister(&twl4030_bci_driver);
-}
-module_exit(twl4030_bci_exit);
+module_platform_driver_probe(twl4030_bci_driver, twl4030_bci_probe);
MODULE_AUTHOR("GraÅžvydas Ignotas");
MODULE_DESCRIPTION("TWL4030 Battery Charger Interface driver");