diff options
Diffstat (limited to 'drivers/hwmon/thmc50.c')
-rw-r--r-- | drivers/hwmon/thmc50.c | 13 |
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 | ||
468 | static int __init sm_thmc50_init(void) | 468 | module_i2c_driver(thmc50_driver); |
469 | { | ||
470 | return i2c_add_driver(&thmc50_driver); | ||
471 | } | ||
472 | |||
473 | static void __exit sm_thmc50_exit(void) | ||
474 | { | ||
475 | i2c_del_driver(&thmc50_driver); | ||
476 | } | ||
477 | 469 | ||
478 | MODULE_AUTHOR("Krzysztof Helt <krzysztof.h1@wp.pl>"); | 470 | MODULE_AUTHOR("Krzysztof Helt <krzysztof.h1@wp.pl>"); |
479 | MODULE_DESCRIPTION("THMC50 driver"); | 471 | MODULE_DESCRIPTION("THMC50 driver"); |
480 | |||
481 | module_init(sm_thmc50_init); | ||
482 | module_exit(sm_thmc50_exit); | ||