diff options
Diffstat (limited to 'drivers/hwmon/adm1021.c')
-rw-r--r-- | drivers/hwmon/adm1021.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/hwmon/adm1021.c b/drivers/hwmon/adm1021.c index 0158cc35cb2e..bce543907222 100644 --- a/drivers/hwmon/adm1021.c +++ b/drivers/hwmon/adm1021.c | |||
@@ -451,15 +451,7 @@ static struct adm1021_data *adm1021_update_device(struct device *dev) | |||
451 | return data; | 451 | return data; |
452 | } | 452 | } |
453 | 453 | ||
454 | static int __init sensors_adm1021_init(void) | 454 | module_i2c_driver(adm1021_driver); |
455 | { | ||
456 | return i2c_add_driver(&adm1021_driver); | ||
457 | } | ||
458 | |||
459 | static void __exit sensors_adm1021_exit(void) | ||
460 | { | ||
461 | i2c_del_driver(&adm1021_driver); | ||
462 | } | ||
463 | 455 | ||
464 | MODULE_AUTHOR ("Frodo Looijaard <frodol@dds.nl> and " | 456 | MODULE_AUTHOR ("Frodo Looijaard <frodol@dds.nl> and " |
465 | "Philip Edelbrock <phil@netroedge.com>"); | 457 | "Philip Edelbrock <phil@netroedge.com>"); |
@@ -468,6 +460,3 @@ MODULE_LICENSE("GPL"); | |||
468 | 460 | ||
469 | module_param(read_only, bool, 0); | 461 | module_param(read_only, bool, 0); |
470 | MODULE_PARM_DESC(read_only, "Don't set any values, read only mode"); | 462 | MODULE_PARM_DESC(read_only, "Don't set any values, read only mode"); |
471 | |||
472 | module_init(sensors_adm1021_init) | ||
473 | module_exit(sensors_adm1021_exit) | ||