diff options
Diffstat (limited to 'drivers/power')
-rw-r--r-- | drivers/power/ds2782_battery.c | 13 | ||||
-rw-r--r-- | drivers/power/lp8727_charger.c | 14 | ||||
-rw-r--r-- | drivers/power/max17040_battery.c | 13 | ||||
-rw-r--r-- | drivers/power/max17042_battery.c | 13 | ||||
-rw-r--r-- | drivers/power/sbs-battery.c | 13 | ||||
-rw-r--r-- | drivers/power/z2_battery.c | 14 |
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 | 406 | module_i2c_driver(ds278x_battery_driver); | |
407 | static int __init ds278x_init(void) | ||
408 | { | ||
409 | return i2c_add_driver(&ds278x_battery_driver); | ||
410 | } | ||
411 | module_init(ds278x_init); | ||
412 | |||
413 | static void __exit ds278x_exit(void) | ||
414 | { | ||
415 | i2c_del_driver(&ds278x_battery_driver); | ||
416 | } | ||
417 | module_exit(ds278x_exit); | ||
418 | 407 | ||
419 | MODULE_AUTHOR("Ryan Mallon"); | 408 | MODULE_AUTHOR("Ryan Mallon"); |
420 | MODULE_DESCRIPTION("Maxim/Dallas DS2782 Stand-Alone Fuel Gauage IC driver"); | 409 | MODULE_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 | 493 | module_i2c_driver(lp8727_driver); | |
494 | static int __init lp8727_init(void) | ||
495 | { | ||
496 | return i2c_add_driver(&lp8727_driver); | ||
497 | } | ||
498 | |||
499 | static void __exit lp8727_exit(void) | ||
500 | { | ||
501 | i2c_del_driver(&lp8727_driver); | ||
502 | } | ||
503 | |||
504 | module_init(lp8727_init); | ||
505 | module_exit(lp8727_exit); | ||
506 | 494 | ||
507 | MODULE_DESCRIPTION("TI/National Semiconductor LP8727 charger driver"); | 495 | MODULE_DESCRIPTION("TI/National Semiconductor LP8727 charger driver"); |
508 | MODULE_AUTHOR("Woogyom Kim <milo.kim@ti.com>, " | 496 | MODULE_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 | 293 | module_i2c_driver(max17040_i2c_driver); | |
294 | static int __init max17040_init(void) | ||
295 | { | ||
296 | return i2c_add_driver(&max17040_i2c_driver); | ||
297 | } | ||
298 | module_init(max17040_init); | ||
299 | |||
300 | static void __exit max17040_exit(void) | ||
301 | { | ||
302 | i2c_del_driver(&max17040_i2c_driver); | ||
303 | } | ||
304 | module_exit(max17040_exit); | ||
305 | 294 | ||
306 | MODULE_AUTHOR("Minkyu Kang <mk7.kang@samsung.com>"); | 295 | MODULE_AUTHOR("Minkyu Kang <mk7.kang@samsung.com>"); |
307 | MODULE_DESCRIPTION("MAX17040 Fuel Gauge"); | 296 | MODULE_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 | 754 | module_i2c_driver(max17042_i2c_driver); | |
755 | static int __init max17042_init(void) | ||
756 | { | ||
757 | return i2c_add_driver(&max17042_i2c_driver); | ||
758 | } | ||
759 | module_init(max17042_init); | ||
760 | |||
761 | static void __exit max17042_exit(void) | ||
762 | { | ||
763 | i2c_del_driver(&max17042_i2c_driver); | ||
764 | } | ||
765 | module_exit(max17042_exit); | ||
766 | 755 | ||
767 | MODULE_AUTHOR("MyungJoo Ham <myungjoo.ham@samsung.com>"); | 756 | MODULE_AUTHOR("MyungJoo Ham <myungjoo.ham@samsung.com>"); |
768 | MODULE_DESCRIPTION("MAX17042 Fuel Gauge"); | 757 | MODULE_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 | 855 | module_i2c_driver(sbs_battery_driver); | |
856 | static int __init sbs_battery_init(void) | ||
857 | { | ||
858 | return i2c_add_driver(&sbs_battery_driver); | ||
859 | } | ||
860 | module_init(sbs_battery_init); | ||
861 | |||
862 | static void __exit sbs_battery_exit(void) | ||
863 | { | ||
864 | i2c_del_driver(&sbs_battery_driver); | ||
865 | } | ||
866 | module_exit(sbs_battery_exit); | ||
867 | 856 | ||
868 | MODULE_DESCRIPTION("SBS battery monitor driver"); | 857 | MODULE_DESCRIPTION("SBS battery monitor driver"); |
869 | MODULE_LICENSE("GPL"); | 858 | MODULE_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 | 319 | module_i2c_driver(z2_batt_driver); | |
320 | static int __init z2_batt_init(void) | ||
321 | { | ||
322 | return i2c_add_driver(&z2_batt_driver); | ||
323 | } | ||
324 | |||
325 | static void __exit z2_batt_exit(void) | ||
326 | { | ||
327 | i2c_del_driver(&z2_batt_driver); | ||
328 | } | ||
329 | |||
330 | module_init(z2_batt_init); | ||
331 | module_exit(z2_batt_exit); | ||
332 | 320 | ||
333 | MODULE_LICENSE("GPL"); | 321 | MODULE_LICENSE("GPL"); |
334 | MODULE_AUTHOR("Peter Edwards <sweetlilmre@gmail.com>"); | 322 | MODULE_AUTHOR("Peter Edwards <sweetlilmre@gmail.com>"); |