aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/lm90.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hwmon/lm90.c')
-rw-r--r--drivers/hwmon/lm90.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/hwmon/lm90.c b/drivers/hwmon/lm90.c
index d2dd5f90496d..248f2b40dfaf 100644
--- a/drivers/hwmon/lm90.c
+++ b/drivers/hwmon/lm90.c
@@ -1514,19 +1514,8 @@ static struct i2c_driver lm90_driver = {
1514 .address_list = normal_i2c, 1514 .address_list = normal_i2c,
1515}; 1515};
1516 1516
1517static int __init sensors_lm90_init(void) 1517module_i2c_driver(lm90_driver);
1518{
1519 return i2c_add_driver(&lm90_driver);
1520}
1521
1522static void __exit sensors_lm90_exit(void)
1523{
1524 i2c_del_driver(&lm90_driver);
1525}
1526 1518
1527MODULE_AUTHOR("Jean Delvare <khali@linux-fr.org>"); 1519MODULE_AUTHOR("Jean Delvare <khali@linux-fr.org>");
1528MODULE_DESCRIPTION("LM90/ADM1032 driver"); 1520MODULE_DESCRIPTION("LM90/ADM1032 driver");
1529MODULE_LICENSE("GPL"); 1521MODULE_LICENSE("GPL");
1530
1531module_init(sensors_lm90_init);
1532module_exit(sensors_lm90_exit);