aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/thmc50.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hwmon/thmc50.c')
-rw-r--r--drivers/hwmon/thmc50.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/hwmon/thmc50.c b/drivers/hwmon/thmc50.c
index 7dfb4dec4c5f..bd83bc0cd8cd 100644
--- a/drivers/hwmon/thmc50.c
+++ b/drivers/hwmon/thmc50.c
@@ -465,18 +465,7 @@ static struct thmc50_data *thmc50_update_device(struct device *dev)
465 return data; 465 return data;
466} 466}
467 467
468static int __init sm_thmc50_init(void) 468module_i2c_driver(thmc50_driver);
469{
470 return i2c_add_driver(&thmc50_driver);
471}
472
473static void __exit sm_thmc50_exit(void)
474{
475 i2c_del_driver(&thmc50_driver);
476}
477 469
478MODULE_AUTHOR("Krzysztof Helt <krzysztof.h1@wp.pl>"); 470MODULE_AUTHOR("Krzysztof Helt <krzysztof.h1@wp.pl>");
479MODULE_DESCRIPTION("THMC50 driver"); 471MODULE_DESCRIPTION("THMC50 driver");
480
481module_init(sm_thmc50_init);
482module_exit(sm_thmc50_exit);