diff options
Diffstat (limited to 'drivers/hwmon/emc2103.c')
-rw-r--r-- | drivers/hwmon/emc2103.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/hwmon/emc2103.c b/drivers/hwmon/emc2103.c index 865063914d76..0f51382df80a 100644 --- a/drivers/hwmon/emc2103.c +++ b/drivers/hwmon/emc2103.c | |||
@@ -722,19 +722,8 @@ static struct i2c_driver emc2103_driver = { | |||
722 | .address_list = normal_i2c, | 722 | .address_list = normal_i2c, |
723 | }; | 723 | }; |
724 | 724 | ||
725 | static int __init sensors_emc2103_init(void) | 725 | module_i2c_driver(emc2103_driver); |
726 | { | ||
727 | return i2c_add_driver(&emc2103_driver); | ||
728 | } | ||
729 | |||
730 | static void __exit sensors_emc2103_exit(void) | ||
731 | { | ||
732 | i2c_del_driver(&emc2103_driver); | ||
733 | } | ||
734 | 726 | ||
735 | MODULE_AUTHOR("Steve Glendinning <steve.glendinning@smsc.com>"); | 727 | MODULE_AUTHOR("Steve Glendinning <steve.glendinning@smsc.com>"); |
736 | MODULE_DESCRIPTION("SMSC EMC2103 hwmon driver"); | 728 | MODULE_DESCRIPTION("SMSC EMC2103 hwmon driver"); |
737 | MODULE_LICENSE("GPL"); | 729 | MODULE_LICENSE("GPL"); |
738 | |||
739 | module_init(sensors_emc2103_init); | ||
740 | module_exit(sensors_emc2103_exit); | ||