diff options
Diffstat (limited to 'drivers/hwmon/lm92.c')
-rw-r--r-- | drivers/hwmon/lm92.c | 13 |
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 | ||
419 | static int __init sensors_lm92_init(void) | 419 | module_i2c_driver(lm92_driver); |
420 | { | ||
421 | return i2c_add_driver(&lm92_driver); | ||
422 | } | ||
423 | |||
424 | static void __exit sensors_lm92_exit(void) | ||
425 | { | ||
426 | i2c_del_driver(&lm92_driver); | ||
427 | } | ||
428 | 420 | ||
429 | MODULE_AUTHOR("Jean Delvare <khali@linux-fr.org>"); | 421 | MODULE_AUTHOR("Jean Delvare <khali@linux-fr.org>"); |
430 | MODULE_DESCRIPTION("LM92/MAX6635 driver"); | 422 | MODULE_DESCRIPTION("LM92/MAX6635 driver"); |
431 | MODULE_LICENSE("GPL"); | 423 | MODULE_LICENSE("GPL"); |
432 | |||
433 | module_init(sensors_lm92_init); | ||
434 | module_exit(sensors_lm92_exit); | ||