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