diff options
Diffstat (limited to 'drivers/hwmon/w83795.c')
-rw-r--r-- | drivers/hwmon/w83795.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/hwmon/w83795.c b/drivers/hwmon/w83795.c index aa58b25565bc..deb12c982800 100644 --- a/drivers/hwmon/w83795.c +++ b/drivers/hwmon/w83795.c | |||
@@ -2244,19 +2244,8 @@ static struct i2c_driver w83795_driver = { | |||
2244 | .address_list = normal_i2c, | 2244 | .address_list = normal_i2c, |
2245 | }; | 2245 | }; |
2246 | 2246 | ||
2247 | static int __init sensors_w83795_init(void) | 2247 | module_i2c_driver(w83795_driver); |
2248 | { | ||
2249 | return i2c_add_driver(&w83795_driver); | ||
2250 | } | ||
2251 | |||
2252 | static void __exit sensors_w83795_exit(void) | ||
2253 | { | ||
2254 | i2c_del_driver(&w83795_driver); | ||
2255 | } | ||
2256 | 2248 | ||
2257 | MODULE_AUTHOR("Wei Song, Jean Delvare <khali@linux-fr.org>"); | 2249 | MODULE_AUTHOR("Wei Song, Jean Delvare <khali@linux-fr.org>"); |
2258 | MODULE_DESCRIPTION("W83795G/ADG hardware monitoring driver"); | 2250 | MODULE_DESCRIPTION("W83795G/ADG hardware monitoring driver"); |
2259 | MODULE_LICENSE("GPL"); | 2251 | MODULE_LICENSE("GPL"); |
2260 | |||
2261 | module_init(sensors_w83795_init); | ||
2262 | module_exit(sensors_w83795_exit); | ||