diff options
Diffstat (limited to 'drivers/hwmon/ad7418.c')
-rw-r--r-- | drivers/hwmon/ad7418.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/hwmon/ad7418.c b/drivers/hwmon/ad7418.c index 42461d1ff101..a50a6bef16c4 100644 --- a/drivers/hwmon/ad7418.c +++ b/drivers/hwmon/ad7418.c | |||
@@ -295,20 +295,9 @@ static int ad7418_remove(struct i2c_client *client) | |||
295 | return 0; | 295 | return 0; |
296 | } | 296 | } |
297 | 297 | ||
298 | static int __init ad7418_init(void) | 298 | module_i2c_driver(ad7418_driver); |
299 | { | ||
300 | return i2c_add_driver(&ad7418_driver); | ||
301 | } | ||
302 | |||
303 | static void __exit ad7418_exit(void) | ||
304 | { | ||
305 | i2c_del_driver(&ad7418_driver); | ||
306 | } | ||
307 | 299 | ||
308 | MODULE_AUTHOR("Alessandro Zummo <a.zummo@towertech.it>"); | 300 | MODULE_AUTHOR("Alessandro Zummo <a.zummo@towertech.it>"); |
309 | MODULE_DESCRIPTION("AD7416/17/18 driver"); | 301 | MODULE_DESCRIPTION("AD7416/17/18 driver"); |
310 | MODULE_LICENSE("GPL"); | 302 | MODULE_LICENSE("GPL"); |
311 | MODULE_VERSION(DRV_VERSION); | 303 | MODULE_VERSION(DRV_VERSION); |
312 | |||
313 | module_init(ad7418_init); | ||
314 | module_exit(ad7418_exit); | ||