aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/power/lp8727_charger.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2012-01-21 01:42:54 -0500
committerAnton Vorontsov <anton.vorontsov@linaro.org>2012-03-26 12:41:22 -0400
commit5ff92e7ab3591299089cfba440acb4d2ba8ab92f (patch)
tree342c94c993ef2ea65b8d0c2599f1306e2d1a23e3 /drivers/power/lp8727_charger.c
parente2c5f7db789a5be8ba131e9fe3e87b66bc606e3b (diff)
power_supply: Convert i2c drivers to module_i2c_driver
Factor out some boilerplate code for i2c driver registration into module_i2c_driver. Signed-off-by: Axel Lin <axel.lin@gmail.com> Cc: Woogyom Kim <milo.kim@ti.com> Cc: Daniel Jeong <daniel.jeong@ti.com> Cc: Minkyu Kang <mk7.kang@samsung.com> Cc: Peter Edwards <sweetlilmre@gmail.com> Acked-by: Milo(Woogyom) Kim <milo.kim@ti.com> Acked-by: Rhyland Klein <rklein@nvidia.com> Acked-by: Ryan Mallon <rmallon@gmail.com> Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
Diffstat (limited to 'drivers/power/lp8727_charger.c')
-rw-r--r--drivers/power/lp8727_charger.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/power/lp8727_charger.c b/drivers/power/lp8727_charger.c
index ab0f431876e1..d8b75780bfef 100644
--- a/drivers/power/lp8727_charger.c
+++ b/drivers/power/lp8727_charger.c
@@ -490,19 +490,7 @@ static struct i2c_driver lp8727_driver = {
490 .remove = __devexit_p(lp8727_remove), 490 .remove = __devexit_p(lp8727_remove),
491 .id_table = lp8727_ids, 491 .id_table = lp8727_ids,
492}; 492};
493 493module_i2c_driver(lp8727_driver);
494static int __init lp8727_init(void)
495{
496 return i2c_add_driver(&lp8727_driver);
497}
498
499static void __exit lp8727_exit(void)
500{
501 i2c_del_driver(&lp8727_driver);
502}
503
504module_init(lp8727_init);
505module_exit(lp8727_exit);
506 494
507MODULE_DESCRIPTION("TI/National Semiconductor LP8727 charger driver"); 495MODULE_DESCRIPTION("TI/National Semiconductor LP8727 charger driver");
508MODULE_AUTHOR("Woogyom Kim <milo.kim@ti.com>, " 496MODULE_AUTHOR("Woogyom Kim <milo.kim@ti.com>, "