aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/power/ds2782_battery.c13
-rw-r--r--drivers/power/lp8727_charger.c14
-rw-r--r--drivers/power/max17040_battery.c13
-rw-r--r--drivers/power/max17042_battery.c13
-rw-r--r--drivers/power/sbs-battery.c13
-rw-r--r--drivers/power/z2_battery.c14
6 files changed, 6 insertions, 74 deletions
diff --git a/drivers/power/ds2782_battery.c b/drivers/power/ds2782_battery.c
index bfbce5de49da..6bb6e2f5ea81 100644
--- a/drivers/power/ds2782_battery.c
+++ b/drivers/power/ds2782_battery.c
@@ -403,18 +403,7 @@ static struct i2c_driver ds278x_battery_driver = {
403 .remove = ds278x_battery_remove, 403 .remove = ds278x_battery_remove,
404 .id_table = ds278x_id, 404 .id_table = ds278x_id,
405}; 405};
406 406module_i2c_driver(ds278x_battery_driver);
407static int __init ds278x_init(void)
408{
409 return i2c_add_driver(&ds278x_battery_driver);
410}
411module_init(ds278x_init);
412
413static void __exit ds278x_exit(void)
414{
415 i2c_del_driver(&ds278x_battery_driver);
416}
417module_exit(ds278x_exit);
418 407
419MODULE_AUTHOR("Ryan Mallon"); 408MODULE_AUTHOR("Ryan Mallon");
420MODULE_DESCRIPTION("Maxim/Dallas DS2782 Stand-Alone Fuel Gauage IC driver"); 409MODULE_DESCRIPTION("Maxim/Dallas DS2782 Stand-Alone Fuel Gauage IC driver");
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>, "
diff --git a/drivers/power/max17040_battery.c b/drivers/power/max17040_battery.c
index 2f2f9a6f54fa..c284143cfcd7 100644
--- a/drivers/power/max17040_battery.c
+++ b/drivers/power/max17040_battery.c
@@ -290,18 +290,7 @@ static struct i2c_driver max17040_i2c_driver = {
290 .resume = max17040_resume, 290 .resume = max17040_resume,
291 .id_table = max17040_id, 291 .id_table = max17040_id,
292}; 292};
293 293module_i2c_driver(max17040_i2c_driver);
294static int __init max17040_init(void)
295{
296 return i2c_add_driver(&max17040_i2c_driver);
297}
298module_init(max17040_init);
299
300static void __exit max17040_exit(void)
301{
302 i2c_del_driver(&max17040_i2c_driver);
303}
304module_exit(max17040_exit);
305 294
306MODULE_AUTHOR("Minkyu Kang <mk7.kang@samsung.com>"); 295MODULE_AUTHOR("Minkyu Kang <mk7.kang@samsung.com>");
307MODULE_DESCRIPTION("MAX17040 Fuel Gauge"); 296MODULE_DESCRIPTION("MAX17040 Fuel Gauge");
diff --git a/drivers/power/max17042_battery.c b/drivers/power/max17042_battery.c
index e36763a4f0f0..5474e76d36fb 100644
--- a/drivers/power/max17042_battery.c
+++ b/drivers/power/max17042_battery.c
@@ -751,18 +751,7 @@ static struct i2c_driver max17042_i2c_driver = {
751 .remove = __devexit_p(max17042_remove), 751 .remove = __devexit_p(max17042_remove),
752 .id_table = max17042_id, 752 .id_table = max17042_id,
753}; 753};
754 754module_i2c_driver(max17042_i2c_driver);
755static int __init max17042_init(void)
756{
757 return i2c_add_driver(&max17042_i2c_driver);
758}
759module_init(max17042_init);
760
761static void __exit max17042_exit(void)
762{
763 i2c_del_driver(&max17042_i2c_driver);
764}
765module_exit(max17042_exit);
766 755
767MODULE_AUTHOR("MyungJoo Ham <myungjoo.ham@samsung.com>"); 756MODULE_AUTHOR("MyungJoo Ham <myungjoo.ham@samsung.com>");
768MODULE_DESCRIPTION("MAX17042 Fuel Gauge"); 757MODULE_DESCRIPTION("MAX17042 Fuel Gauge");
diff --git a/drivers/power/sbs-battery.c b/drivers/power/sbs-battery.c
index 9ff8af069da6..06b659d91790 100644
--- a/drivers/power/sbs-battery.c
+++ b/drivers/power/sbs-battery.c
@@ -852,18 +852,7 @@ static struct i2c_driver sbs_battery_driver = {
852 .of_match_table = sbs_dt_ids, 852 .of_match_table = sbs_dt_ids,
853 }, 853 },
854}; 854};
855 855module_i2c_driver(sbs_battery_driver);
856static int __init sbs_battery_init(void)
857{
858 return i2c_add_driver(&sbs_battery_driver);
859}
860module_init(sbs_battery_init);
861
862static void __exit sbs_battery_exit(void)
863{
864 i2c_del_driver(&sbs_battery_driver);
865}
866module_exit(sbs_battery_exit);
867 856
868MODULE_DESCRIPTION("SBS battery monitor driver"); 857MODULE_DESCRIPTION("SBS battery monitor driver");
869MODULE_LICENSE("GPL"); 858MODULE_LICENSE("GPL");
diff --git a/drivers/power/z2_battery.c b/drivers/power/z2_battery.c
index 636ebb2a0e80..8c9a607ea77a 100644
--- a/drivers/power/z2_battery.c
+++ b/drivers/power/z2_battery.c
@@ -316,19 +316,7 @@ static struct i2c_driver z2_batt_driver = {
316 .remove = __devexit_p(z2_batt_remove), 316 .remove = __devexit_p(z2_batt_remove),
317 .id_table = z2_batt_id, 317 .id_table = z2_batt_id,
318}; 318};
319 319module_i2c_driver(z2_batt_driver);
320static int __init z2_batt_init(void)
321{
322 return i2c_add_driver(&z2_batt_driver);
323}
324
325static void __exit z2_batt_exit(void)
326{
327 i2c_del_driver(&z2_batt_driver);
328}
329
330module_init(z2_batt_init);
331module_exit(z2_batt_exit);
332 320
333MODULE_LICENSE("GPL"); 321MODULE_LICENSE("GPL");
334MODULE_AUTHOR("Peter Edwards <sweetlilmre@gmail.com>"); 322MODULE_AUTHOR("Peter Edwards <sweetlilmre@gmail.com>");