aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/ad7418.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hwmon/ad7418.c')
-rw-r--r--drivers/hwmon/ad7418.c13
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
298static int __init ad7418_init(void) 298module_i2c_driver(ad7418_driver);
299{
300 return i2c_add_driver(&ad7418_driver);
301}
302
303static void __exit ad7418_exit(void)
304{
305 i2c_del_driver(&ad7418_driver);
306}
307 299
308MODULE_AUTHOR("Alessandro Zummo <a.zummo@towertech.it>"); 300MODULE_AUTHOR("Alessandro Zummo <a.zummo@towertech.it>");
309MODULE_DESCRIPTION("AD7416/17/18 driver"); 301MODULE_DESCRIPTION("AD7416/17/18 driver");
310MODULE_LICENSE("GPL"); 302MODULE_LICENSE("GPL");
311MODULE_VERSION(DRV_VERSION); 303MODULE_VERSION(DRV_VERSION);
312
313module_init(ad7418_init);
314module_exit(ad7418_exit);