diff options
Diffstat (limited to 'drivers/hwmon/tmp102.c')
-rw-r--r-- | drivers/hwmon/tmp102.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/hwmon/tmp102.c b/drivers/hwmon/tmp102.c index c08eee21d76e..0d466b9d8908 100644 --- a/drivers/hwmon/tmp102.c +++ b/drivers/hwmon/tmp102.c | |||
@@ -292,17 +292,7 @@ static struct i2c_driver tmp102_driver = { | |||
292 | .id_table = tmp102_id, | 292 | .id_table = tmp102_id, |
293 | }; | 293 | }; |
294 | 294 | ||
295 | static int __init tmp102_init(void) | 295 | module_i2c_driver(tmp102_driver); |
296 | { | ||
297 | return i2c_add_driver(&tmp102_driver); | ||
298 | } | ||
299 | module_init(tmp102_init); | ||
300 | |||
301 | static void __exit tmp102_exit(void) | ||
302 | { | ||
303 | i2c_del_driver(&tmp102_driver); | ||
304 | } | ||
305 | module_exit(tmp102_exit); | ||
306 | 296 | ||
307 | MODULE_AUTHOR("Steven King <sfking@fdwdc.com>"); | 297 | MODULE_AUTHOR("Steven King <sfking@fdwdc.com>"); |
308 | MODULE_DESCRIPTION("Texas Instruments TMP102 temperature sensor driver"); | 298 | MODULE_DESCRIPTION("Texas Instruments TMP102 temperature sensor driver"); |