diff options
Diffstat (limited to 'drivers/power/ds2782_battery.c')
-rw-r--r-- | drivers/power/ds2782_battery.c | 13 |
1 files changed, 1 insertions, 12 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"); |