aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/lm95245.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hwmon/lm95245.c')
-rw-r--r--drivers/hwmon/lm95245.c13
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
528static int __init sensors_lm95245_init(void) 528module_i2c_driver(lm95245_driver);
529{
530 return i2c_add_driver(&lm95245_driver);
531}
532
533static void __exit sensors_lm95245_exit(void)
534{
535 i2c_del_driver(&lm95245_driver);
536}
537 529
538MODULE_AUTHOR("Alexander Stein <alexander.stein@systec-electronic.com>"); 530MODULE_AUTHOR("Alexander Stein <alexander.stein@systec-electronic.com>");
539MODULE_DESCRIPTION("LM95245 sensor driver"); 531MODULE_DESCRIPTION("LM95245 sensor driver");
540MODULE_LICENSE("GPL"); 532MODULE_LICENSE("GPL");
541
542module_init(sensors_lm95245_init);
543module_exit(sensors_lm95245_exit);