aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/adm1021.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hwmon/adm1021.c')
-rw-r--r--drivers/hwmon/adm1021.c13
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
454static int __init sensors_adm1021_init(void) 454module_i2c_driver(adm1021_driver);
455{
456 return i2c_add_driver(&adm1021_driver);
457}
458
459static void __exit sensors_adm1021_exit(void)
460{
461 i2c_del_driver(&adm1021_driver);
462}
463 455
464MODULE_AUTHOR ("Frodo Looijaard <frodol@dds.nl> and " 456MODULE_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
469module_param(read_only, bool, 0); 461module_param(read_only, bool, 0);
470MODULE_PARM_DESC(read_only, "Don't set any values, read only mode"); 462MODULE_PARM_DESC(read_only, "Don't set any values, read only mode");
471
472module_init(sensors_adm1021_init)
473module_exit(sensors_adm1021_exit)