aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/lm92.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hwmon/lm92.c')
-rw-r--r--drivers/hwmon/lm92.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/hwmon/lm92.c b/drivers/hwmon/lm92.c
index 8fcbd4d422c5..92f2d4684a3c 100644
--- a/drivers/hwmon/lm92.c
+++ b/drivers/hwmon/lm92.c
@@ -416,19 +416,8 @@ static struct i2c_driver lm92_driver = {
416 .address_list = normal_i2c, 416 .address_list = normal_i2c,
417}; 417};
418 418
419static int __init sensors_lm92_init(void) 419module_i2c_driver(lm92_driver);
420{
421 return i2c_add_driver(&lm92_driver);
422}
423
424static void __exit sensors_lm92_exit(void)
425{
426 i2c_del_driver(&lm92_driver);
427}
428 420
429MODULE_AUTHOR("Jean Delvare <khali@linux-fr.org>"); 421MODULE_AUTHOR("Jean Delvare <khali@linux-fr.org>");
430MODULE_DESCRIPTION("LM92/MAX6635 driver"); 422MODULE_DESCRIPTION("LM92/MAX6635 driver");
431MODULE_LICENSE("GPL"); 423MODULE_LICENSE("GPL");
432
433module_init(sensors_lm92_init);
434module_exit(sensors_lm92_exit);