diff options
Diffstat (limited to 'drivers/hwmon/lm95245.c')
-rw-r--r-- | drivers/hwmon/lm95245.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/hwmon/lm95245.c b/drivers/hwmon/lm95245.c index 5e5fc1b0ace1..9a46c106a240 100644 --- a/drivers/hwmon/lm95245.c +++ b/drivers/hwmon/lm95245.c | |||
@@ -525,19 +525,8 @@ static struct i2c_driver lm95245_driver = { | |||
525 | .address_list = normal_i2c, | 525 | .address_list = normal_i2c, |
526 | }; | 526 | }; |
527 | 527 | ||
528 | static int __init sensors_lm95245_init(void) | 528 | module_i2c_driver(lm95245_driver); |
529 | { | ||
530 | return i2c_add_driver(&lm95245_driver); | ||
531 | } | ||
532 | |||
533 | static void __exit sensors_lm95245_exit(void) | ||
534 | { | ||
535 | i2c_del_driver(&lm95245_driver); | ||
536 | } | ||
537 | 529 | ||
538 | MODULE_AUTHOR("Alexander Stein <alexander.stein@systec-electronic.com>"); | 530 | MODULE_AUTHOR("Alexander Stein <alexander.stein@systec-electronic.com>"); |
539 | MODULE_DESCRIPTION("LM95245 sensor driver"); | 531 | MODULE_DESCRIPTION("LM95245 sensor driver"); |
540 | MODULE_LICENSE("GPL"); | 532 | MODULE_LICENSE("GPL"); |
541 | |||
542 | module_init(sensors_lm95245_init); | ||
543 | module_exit(sensors_lm95245_exit); | ||