aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2012-01-20 02:38:18 -0500
committerGuenter Roeck <guenter.roeck@ericsson.com>2012-03-18 21:26:50 -0400
commitf0967eea80ec2a19a4fe1ad27e3ff1b22c79a3c7 (patch)
treec0c6af7362f5ba5ea2220fba236f1b2e48defcca /drivers/hwmon
parent61ba031841ad60c4a9ea16b20dd46b6cdb0faf2a (diff)
hwmon: convert drivers/hwmon/* to use module_i2c_driver()
This patch converts the drivers in drivers/hwmon/* to use the module_i2c_driver() macro which makes the code smaller and a bit simpler. Signed-off-by: Axel Lin <axel.lin@gmail.com> Cc: Corentin Labbe <corentin.labbe@geomatys.fr> Cc: Dirk Eibach <eibach@gdsys.de> Cc: "Mark M. Hoffman" <mhoffman@lightlink.com> Cc: Steve Glendinning <steve.glendinning@smsc.com> Cc: Riku Voipio <riku.voipio@iki.fi> Cc: Guillaume Ligneul <guillaume.ligneul@gmail.com> Cc: David George <david.george@ska.ac.za> Cc: "Hans J. Koch" <hjk@hansjkoch.de> Cc: Marc Hulsman <m.hulsman@tudelft.nl> Cc: Rudolf Marek <r.marek@assembler.cz> Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Diffstat (limited to 'drivers/hwmon')
-rw-r--r--drivers/hwmon/ad7414.c12
-rw-r--r--drivers/hwmon/ad7418.c13
-rw-r--r--drivers/hwmon/adm1021.c13
-rw-r--r--drivers/hwmon/adm1025.c13
-rw-r--r--drivers/hwmon/adm1026.c13
-rw-r--r--drivers/hwmon/adm1029.c18
-rw-r--r--drivers/hwmon/adm1031.c13
-rw-r--r--drivers/hwmon/adm9240.c14
-rw-r--r--drivers/hwmon/ads1015.c13
-rw-r--r--drivers/hwmon/adt7411.c12
-rw-r--r--drivers/hwmon/adt7462.c13
-rw-r--r--drivers/hwmon/adt7470.c13
-rw-r--r--drivers/hwmon/adt7475.c13
-rw-r--r--drivers/hwmon/amc6821.c15
-rw-r--r--drivers/hwmon/asb100.c13
-rw-r--r--drivers/hwmon/atxp1.c13
-rw-r--r--drivers/hwmon/ds1621.c14
-rw-r--r--drivers/hwmon/ds620.c13
-rw-r--r--drivers/hwmon/emc1403.c13
-rw-r--r--drivers/hwmon/emc2103.c13
-rw-r--r--drivers/hwmon/emc6w201.c12
-rw-r--r--drivers/hwmon/f75375s.c13
-rw-r--r--drivers/hwmon/fschmd.c13
-rw-r--r--drivers/hwmon/g760a.c15
-rw-r--r--drivers/hwmon/gl518sm.c13
-rw-r--r--drivers/hwmon/gl520sm.c15
-rw-r--r--drivers/hwmon/jc42.c13
-rw-r--r--drivers/hwmon/lineage-pem.c13
-rw-r--r--drivers/hwmon/lm63.c13
-rw-r--r--drivers/hwmon/lm73.c15
-rw-r--r--drivers/hwmon/lm75.c17
-rw-r--r--drivers/hwmon/lm77.c13
-rw-r--r--drivers/hwmon/lm80.c13
-rw-r--r--drivers/hwmon/lm83.c13
-rw-r--r--drivers/hwmon/lm85.c14
-rw-r--r--drivers/hwmon/lm87.c13
-rw-r--r--drivers/hwmon/lm90.c13
-rw-r--r--drivers/hwmon/lm92.c13
-rw-r--r--drivers/hwmon/lm93.c13
-rw-r--r--drivers/hwmon/lm95241.c13
-rw-r--r--drivers/hwmon/lm95245.c13
-rw-r--r--drivers/hwmon/ltc4151.c13
-rw-r--r--drivers/hwmon/ltc4215.c13
-rw-r--r--drivers/hwmon/ltc4245.c13
-rw-r--r--drivers/hwmon/ltc4261.c13
-rw-r--r--drivers/hwmon/max16065.c13
-rw-r--r--drivers/hwmon/max1619.c13
-rw-r--r--drivers/hwmon/max1668.c13
-rw-r--r--drivers/hwmon/max6639.c13
-rw-r--r--drivers/hwmon/max6642.c13
-rw-r--r--drivers/hwmon/max6650.c13
-rw-r--r--drivers/hwmon/pmbus/adm1275.c12
-rw-r--r--drivers/hwmon/pmbus/lm25066.c12
-rw-r--r--drivers/hwmon/pmbus/ltc2978.c12
-rw-r--r--drivers/hwmon/pmbus/max16064.c12
-rw-r--r--drivers/hwmon/pmbus/max34440.c12
-rw-r--r--drivers/hwmon/pmbus/max8688.c12
-rw-r--r--drivers/hwmon/pmbus/pmbus.c12
-rw-r--r--drivers/hwmon/pmbus/ucd9000.c12
-rw-r--r--drivers/hwmon/pmbus/ucd9200.c12
-rw-r--r--drivers/hwmon/pmbus/zl6100.c12
-rw-r--r--drivers/hwmon/sht21.c23
-rw-r--r--drivers/hwmon/smm665.c13
-rw-r--r--drivers/hwmon/smsc47m192.c13
-rw-r--r--drivers/hwmon/thmc50.c13
-rw-r--r--drivers/hwmon/tmp102.c12
-rw-r--r--drivers/hwmon/tmp401.c13
-rw-r--r--drivers/hwmon/tmp421.c13
-rw-r--r--drivers/hwmon/w83791d.c13
-rw-r--r--drivers/hwmon/w83792d.c16
-rw-r--r--drivers/hwmon/w83793.c13
-rw-r--r--drivers/hwmon/w83795.c13
-rw-r--r--drivers/hwmon/w83l785ts.c13
-rw-r--r--drivers/hwmon/w83l786ng.c15
74 files changed, 74 insertions, 909 deletions
diff --git a/drivers/hwmon/ad7414.c b/drivers/hwmon/ad7414.c
index edbdb6d9a837..36465006c4fb 100644
--- a/drivers/hwmon/ad7414.c
+++ b/drivers/hwmon/ad7414.c
@@ -256,17 +256,7 @@ static struct i2c_driver ad7414_driver = {
256 .id_table = ad7414_id, 256 .id_table = ad7414_id,
257}; 257};
258 258
259static int __init ad7414_init(void) 259module_i2c_driver(ad7414_driver);
260{
261 return i2c_add_driver(&ad7414_driver);
262}
263module_init(ad7414_init);
264
265static void __exit ad7414_exit(void)
266{
267 i2c_del_driver(&ad7414_driver);
268}
269module_exit(ad7414_exit);
270 260
271MODULE_AUTHOR("Stefan Roese <sr at denx.de>, " 261MODULE_AUTHOR("Stefan Roese <sr at denx.de>, "
272 "Frank Edelhaeuser <frank.edelhaeuser at spansion.com>"); 262 "Frank Edelhaeuser <frank.edelhaeuser at spansion.com>");
diff --git a/drivers/hwmon/ad7418.c b/drivers/hwmon/ad7418.c
index 42461d1ff101..a50a6bef16c4 100644
--- a/drivers/hwmon/ad7418.c
+++ b/drivers/hwmon/ad7418.c
@@ -295,20 +295,9 @@ static int ad7418_remove(struct i2c_client *client)
295 return 0; 295 return 0;
296} 296}
297 297
298static int __init ad7418_init(void) 298module_i2c_driver(ad7418_driver);
299{
300 return i2c_add_driver(&ad7418_driver);
301}
302
303static void __exit ad7418_exit(void)
304{
305 i2c_del_driver(&ad7418_driver);
306}
307 299
308MODULE_AUTHOR("Alessandro Zummo <a.zummo@towertech.it>"); 300MODULE_AUTHOR("Alessandro Zummo <a.zummo@towertech.it>");
309MODULE_DESCRIPTION("AD7416/17/18 driver"); 301MODULE_DESCRIPTION("AD7416/17/18 driver");
310MODULE_LICENSE("GPL"); 302MODULE_LICENSE("GPL");
311MODULE_VERSION(DRV_VERSION); 303MODULE_VERSION(DRV_VERSION);
312
313module_init(ad7418_init);
314module_exit(ad7418_exit);
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)
diff --git a/drivers/hwmon/adm1025.c b/drivers/hwmon/adm1025.c
index 1a7f65102343..b8557f9857d2 100644
--- a/drivers/hwmon/adm1025.c
+++ b/drivers/hwmon/adm1025.c
@@ -618,19 +618,8 @@ static struct adm1025_data *adm1025_update_device(struct device *dev)
618 return data; 618 return data;
619} 619}
620 620
621static int __init sensors_adm1025_init(void) 621module_i2c_driver(adm1025_driver);
622{
623 return i2c_add_driver(&adm1025_driver);
624}
625
626static void __exit sensors_adm1025_exit(void)
627{
628 i2c_del_driver(&adm1025_driver);
629}
630 622
631MODULE_AUTHOR("Jean Delvare <khali@linux-fr.org>"); 623MODULE_AUTHOR("Jean Delvare <khali@linux-fr.org>");
632MODULE_DESCRIPTION("ADM1025 driver"); 624MODULE_DESCRIPTION("ADM1025 driver");
633MODULE_LICENSE("GPL"); 625MODULE_LICENSE("GPL");
634
635module_init(sensors_adm1025_init);
636module_exit(sensors_adm1025_exit);
diff --git a/drivers/hwmon/adm1026.c b/drivers/hwmon/adm1026.c
index 0531867484f4..be1708373ec5 100644
--- a/drivers/hwmon/adm1026.c
+++ b/drivers/hwmon/adm1026.c
@@ -1761,20 +1761,9 @@ static int adm1026_remove(struct i2c_client *client)
1761 return 0; 1761 return 0;
1762} 1762}
1763 1763
1764static int __init sm_adm1026_init(void) 1764module_i2c_driver(adm1026_driver);
1765{
1766 return i2c_add_driver(&adm1026_driver);
1767}
1768
1769static void __exit sm_adm1026_exit(void)
1770{
1771 i2c_del_driver(&adm1026_driver);
1772}
1773 1765
1774MODULE_LICENSE("GPL"); 1766MODULE_LICENSE("GPL");
1775MODULE_AUTHOR("Philip Pokorny <ppokorny@penguincomputing.com>, " 1767MODULE_AUTHOR("Philip Pokorny <ppokorny@penguincomputing.com>, "
1776 "Justin Thiessen <jthiessen@penguincomputing.com>"); 1768 "Justin Thiessen <jthiessen@penguincomputing.com>");
1777MODULE_DESCRIPTION("ADM1026 driver"); 1769MODULE_DESCRIPTION("ADM1026 driver");
1778
1779module_init(sm_adm1026_init);
1780module_exit(sm_adm1026_exit);
diff --git a/drivers/hwmon/adm1029.c b/drivers/hwmon/adm1029.c
index d789c334476b..c6531a8cf258 100644
--- a/drivers/hwmon/adm1029.c
+++ b/drivers/hwmon/adm1029.c
@@ -450,24 +450,8 @@ static struct adm1029_data *adm1029_update_device(struct device *dev)
450 return data; 450 return data;
451} 451}
452 452
453/* 453module_i2c_driver(adm1029_driver);
454 Common module stuff
455*/
456static int __init sensors_adm1029_init(void)
457{
458
459 return i2c_add_driver(&adm1029_driver);
460}
461
462static void __exit sensors_adm1029_exit(void)
463{
464
465 i2c_del_driver(&adm1029_driver);
466}
467 454
468MODULE_AUTHOR("Corentin LABBE <corentin.labbe@geomatys.fr>"); 455MODULE_AUTHOR("Corentin LABBE <corentin.labbe@geomatys.fr>");
469MODULE_DESCRIPTION("adm1029 driver"); 456MODULE_DESCRIPTION("adm1029 driver");
470MODULE_LICENSE("GPL v2"); 457MODULE_LICENSE("GPL v2");
471
472module_init(sensors_adm1029_init);
473module_exit(sensors_adm1029_exit);
diff --git a/drivers/hwmon/adm1031.c b/drivers/hwmon/adm1031.c
index 97e2cfb0bc93..71b5ec31fdc3 100644
--- a/drivers/hwmon/adm1031.c
+++ b/drivers/hwmon/adm1031.c
@@ -1131,19 +1131,8 @@ static struct adm1031_data *adm1031_update_device(struct device *dev)
1131 return data; 1131 return data;
1132} 1132}
1133 1133
1134static int __init sensors_adm1031_init(void) 1134module_i2c_driver(adm1031_driver);
1135{
1136 return i2c_add_driver(&adm1031_driver);
1137}
1138
1139static void __exit sensors_adm1031_exit(void)
1140{
1141 i2c_del_driver(&adm1031_driver);
1142}
1143 1135
1144MODULE_AUTHOR("Alexandre d'Alton <alex@alexdalton.org>"); 1136MODULE_AUTHOR("Alexandre d'Alton <alex@alexdalton.org>");
1145MODULE_DESCRIPTION("ADM1031/ADM1030 driver"); 1137MODULE_DESCRIPTION("ADM1031/ADM1030 driver");
1146MODULE_LICENSE("GPL"); 1138MODULE_LICENSE("GPL");
1147
1148module_init(sensors_adm1031_init);
1149module_exit(sensors_adm1031_exit);
diff --git a/drivers/hwmon/adm9240.c b/drivers/hwmon/adm9240.c
index 3f63f5f9741d..64e7ef885411 100644
--- a/drivers/hwmon/adm9240.c
+++ b/drivers/hwmon/adm9240.c
@@ -795,21 +795,9 @@ static struct adm9240_data *adm9240_update_device(struct device *dev)
795 return data; 795 return data;
796} 796}
797 797
798static int __init sensors_adm9240_init(void) 798module_i2c_driver(adm9240_driver);
799{
800 return i2c_add_driver(&adm9240_driver);
801}
802
803static void __exit sensors_adm9240_exit(void)
804{
805 i2c_del_driver(&adm9240_driver);
806}
807 799
808MODULE_AUTHOR("Michiel Rook <michiel@grendelproject.nl>, " 800MODULE_AUTHOR("Michiel Rook <michiel@grendelproject.nl>, "
809 "Grant Coady <gcoady.lk@gmail.com> and others"); 801 "Grant Coady <gcoady.lk@gmail.com> and others");
810MODULE_DESCRIPTION("ADM9240/DS1780/LM81 driver"); 802MODULE_DESCRIPTION("ADM9240/DS1780/LM81 driver");
811MODULE_LICENSE("GPL"); 803MODULE_LICENSE("GPL");
812
813module_init(sensors_adm9240_init);
814module_exit(sensors_adm9240_exit);
815
diff --git a/drivers/hwmon/ads1015.c b/drivers/hwmon/ads1015.c
index dd87ae96c262..7765e4f74ec5 100644
--- a/drivers/hwmon/ads1015.c
+++ b/drivers/hwmon/ads1015.c
@@ -305,19 +305,8 @@ static struct i2c_driver ads1015_driver = {
305 .id_table = ads1015_id, 305 .id_table = ads1015_id,
306}; 306};
307 307
308static int __init sensors_ads1015_init(void) 308module_i2c_driver(ads1015_driver);
309{
310 return i2c_add_driver(&ads1015_driver);
311}
312
313static void __exit sensors_ads1015_exit(void)
314{
315 i2c_del_driver(&ads1015_driver);
316}
317 309
318MODULE_AUTHOR("Dirk Eibach <eibach@gdsys.de>"); 310MODULE_AUTHOR("Dirk Eibach <eibach@gdsys.de>");
319MODULE_DESCRIPTION("ADS1015 driver"); 311MODULE_DESCRIPTION("ADS1015 driver");
320MODULE_LICENSE("GPL"); 312MODULE_LICENSE("GPL");
321
322module_init(sensors_ads1015_init);
323module_exit(sensors_ads1015_exit);
diff --git a/drivers/hwmon/adt7411.c b/drivers/hwmon/adt7411.c
index ffe64f8771a0..71bacc56e138 100644
--- a/drivers/hwmon/adt7411.c
+++ b/drivers/hwmon/adt7411.c
@@ -348,17 +348,7 @@ static struct i2c_driver adt7411_driver = {
348 .class = I2C_CLASS_HWMON, 348 .class = I2C_CLASS_HWMON,
349}; 349};
350 350
351static int __init sensors_adt7411_init(void) 351module_i2c_driver(adt7411_driver);
352{
353 return i2c_add_driver(&adt7411_driver);
354}
355module_init(sensors_adt7411_init)
356
357static void __exit sensors_adt7411_exit(void)
358{
359 i2c_del_driver(&adt7411_driver);
360}
361module_exit(sensors_adt7411_exit)
362 352
363MODULE_AUTHOR("Sascha Hauer <s.hauer@pengutronix.de> and " 353MODULE_AUTHOR("Sascha Hauer <s.hauer@pengutronix.de> and "
364 "Wolfram Sang <w.sang@pengutronix.de>"); 354 "Wolfram Sang <w.sang@pengutronix.de>");
diff --git a/drivers/hwmon/adt7462.c b/drivers/hwmon/adt7462.c
index 7a1494846cfd..fede95f65e90 100644
--- a/drivers/hwmon/adt7462.c
+++ b/drivers/hwmon/adt7462.c
@@ -1975,19 +1975,8 @@ static int adt7462_remove(struct i2c_client *client)
1975 return 0; 1975 return 0;
1976} 1976}
1977 1977
1978static int __init adt7462_init(void) 1978module_i2c_driver(adt7462_driver);
1979{
1980 return i2c_add_driver(&adt7462_driver);
1981}
1982
1983static void __exit adt7462_exit(void)
1984{
1985 i2c_del_driver(&adt7462_driver);
1986}
1987 1979
1988MODULE_AUTHOR("Darrick J. Wong <djwong@us.ibm.com>"); 1980MODULE_AUTHOR("Darrick J. Wong <djwong@us.ibm.com>");
1989MODULE_DESCRIPTION("ADT7462 driver"); 1981MODULE_DESCRIPTION("ADT7462 driver");
1990MODULE_LICENSE("GPL"); 1982MODULE_LICENSE("GPL");
1991
1992module_init(adt7462_init);
1993module_exit(adt7462_exit);
diff --git a/drivers/hwmon/adt7470.c b/drivers/hwmon/adt7470.c
index b23efd9c232f..54ec890521ff 100644
--- a/drivers/hwmon/adt7470.c
+++ b/drivers/hwmon/adt7470.c
@@ -1317,19 +1317,8 @@ static int adt7470_remove(struct i2c_client *client)
1317 return 0; 1317 return 0;
1318} 1318}
1319 1319
1320static int __init adt7470_init(void) 1320module_i2c_driver(adt7470_driver);
1321{
1322 return i2c_add_driver(&adt7470_driver);
1323}
1324
1325static void __exit adt7470_exit(void)
1326{
1327 i2c_del_driver(&adt7470_driver);
1328}
1329 1321
1330MODULE_AUTHOR("Darrick J. Wong <djwong@us.ibm.com>"); 1322MODULE_AUTHOR("Darrick J. Wong <djwong@us.ibm.com>");
1331MODULE_DESCRIPTION("ADT7470 driver"); 1323MODULE_DESCRIPTION("ADT7470 driver");
1332MODULE_LICENSE("GPL"); 1324MODULE_LICENSE("GPL");
1333
1334module_init(adt7470_init);
1335module_exit(adt7470_exit);
diff --git a/drivers/hwmon/adt7475.c b/drivers/hwmon/adt7475.c
index a3b46924a15d..df29d13a5349 100644
--- a/drivers/hwmon/adt7475.c
+++ b/drivers/hwmon/adt7475.c
@@ -1626,19 +1626,8 @@ static struct adt7475_data *adt7475_update_device(struct device *dev)
1626 return data; 1626 return data;
1627} 1627}
1628 1628
1629static int __init sensors_adt7475_init(void) 1629module_i2c_driver(adt7475_driver);
1630{
1631 return i2c_add_driver(&adt7475_driver);
1632}
1633
1634static void __exit sensors_adt7475_exit(void)
1635{
1636 i2c_del_driver(&adt7475_driver);
1637}
1638 1630
1639MODULE_AUTHOR("Advanced Micro Devices, Inc"); 1631MODULE_AUTHOR("Advanced Micro Devices, Inc");
1640MODULE_DESCRIPTION("adt7475 driver"); 1632MODULE_DESCRIPTION("adt7475 driver");
1641MODULE_LICENSE("GPL"); 1633MODULE_LICENSE("GPL");
1642
1643module_init(sensors_adt7475_init);
1644module_exit(sensors_adt7475_exit);
diff --git a/drivers/hwmon/amc6821.c b/drivers/hwmon/amc6821.c
index 4a4bfef3d976..5298855d4c43 100644
--- a/drivers/hwmon/amc6821.c
+++ b/drivers/hwmon/amc6821.c
@@ -1095,20 +1095,7 @@ static struct amc6821_data *amc6821_update_device(struct device *dev)
1095 return data; 1095 return data;
1096} 1096}
1097 1097
1098 1098module_i2c_driver(amc6821_driver);
1099static int __init amc6821_init(void)
1100{
1101 return i2c_add_driver(&amc6821_driver);
1102}
1103
1104static void __exit amc6821_exit(void)
1105{
1106 i2c_del_driver(&amc6821_driver);
1107}
1108
1109module_init(amc6821_init);
1110module_exit(amc6821_exit);
1111
1112 1099
1113MODULE_LICENSE("GPL"); 1100MODULE_LICENSE("GPL");
1114MODULE_AUTHOR("T. Mertelj <tomaz.mertelj@guest.arnes.si>"); 1101MODULE_AUTHOR("T. Mertelj <tomaz.mertelj@guest.arnes.si>");
diff --git a/drivers/hwmon/asb100.c b/drivers/hwmon/asb100.c
index d7bd1f3f2a31..0f300c6b7f98 100644
--- a/drivers/hwmon/asb100.c
+++ b/drivers/hwmon/asb100.c
@@ -971,19 +971,8 @@ static struct asb100_data *asb100_update_device(struct device *dev)
971 return data; 971 return data;
972} 972}
973 973
974static int __init asb100_init(void) 974module_i2c_driver(asb100_driver);
975{
976 return i2c_add_driver(&asb100_driver);
977}
978
979static void __exit asb100_exit(void)
980{
981 i2c_del_driver(&asb100_driver);
982}
983 975
984MODULE_AUTHOR("Mark M. Hoffman <mhoffman@lightlink.com>"); 976MODULE_AUTHOR("Mark M. Hoffman <mhoffman@lightlink.com>");
985MODULE_DESCRIPTION("ASB100 Bach driver"); 977MODULE_DESCRIPTION("ASB100 Bach driver");
986MODULE_LICENSE("GPL"); 978MODULE_LICENSE("GPL");
987
988module_init(asb100_init);
989module_exit(asb100_exit);
diff --git a/drivers/hwmon/atxp1.c b/drivers/hwmon/atxp1.c
index 805e3b1b5621..e69036a51253 100644
--- a/drivers/hwmon/atxp1.c
+++ b/drivers/hwmon/atxp1.c
@@ -367,15 +367,4 @@ static int atxp1_remove(struct i2c_client *client)
367 return 0; 367 return 0;
368}; 368};
369 369
370static int __init atxp1_init(void) 370module_i2c_driver(atxp1_driver);
371{
372 return i2c_add_driver(&atxp1_driver);
373};
374
375static void __exit atxp1_exit(void)
376{
377 i2c_del_driver(&atxp1_driver);
378};
379
380module_init(atxp1_init);
381module_exit(atxp1_exit);
diff --git a/drivers/hwmon/ds1621.c b/drivers/hwmon/ds1621.c
index ef1ac996752e..9832ac53c4b7 100644
--- a/drivers/hwmon/ds1621.c
+++ b/drivers/hwmon/ds1621.c
@@ -305,20 +305,8 @@ static struct i2c_driver ds1621_driver = {
305 .address_list = normal_i2c, 305 .address_list = normal_i2c,
306}; 306};
307 307
308static int __init ds1621_init(void) 308module_i2c_driver(ds1621_driver);
309{
310 return i2c_add_driver(&ds1621_driver);
311}
312
313static void __exit ds1621_exit(void)
314{
315 i2c_del_driver(&ds1621_driver);
316}
317
318 309
319MODULE_AUTHOR("Christian W. Zuckschwerdt <zany@triq.net>"); 310MODULE_AUTHOR("Christian W. Zuckschwerdt <zany@triq.net>");
320MODULE_DESCRIPTION("DS1621 driver"); 311MODULE_DESCRIPTION("DS1621 driver");
321MODULE_LICENSE("GPL"); 312MODULE_LICENSE("GPL");
322
323module_init(ds1621_init);
324module_exit(ds1621_exit);
diff --git a/drivers/hwmon/ds620.c b/drivers/hwmon/ds620.c
index 300c3d4d67df..50663efad412 100644
--- a/drivers/hwmon/ds620.c
+++ b/drivers/hwmon/ds620.c
@@ -297,19 +297,8 @@ static struct i2c_driver ds620_driver = {
297 .id_table = ds620_id, 297 .id_table = ds620_id,
298}; 298};
299 299
300static int __init ds620_init(void) 300module_i2c_driver(ds620_driver);
301{
302 return i2c_add_driver(&ds620_driver);
303}
304
305static void __exit ds620_exit(void)
306{
307 i2c_del_driver(&ds620_driver);
308}
309 301
310MODULE_AUTHOR("Roland Stigge <stigge@antcom.de>"); 302MODULE_AUTHOR("Roland Stigge <stigge@antcom.de>");
311MODULE_DESCRIPTION("DS620 driver"); 303MODULE_DESCRIPTION("DS620 driver");
312MODULE_LICENSE("GPL"); 304MODULE_LICENSE("GPL");
313
314module_init(ds620_init);
315module_exit(ds620_exit);
diff --git a/drivers/hwmon/emc1403.c b/drivers/hwmon/emc1403.c
index 270ffab711cb..99ac141bf3d7 100644
--- a/drivers/hwmon/emc1403.c
+++ b/drivers/hwmon/emc1403.c
@@ -366,18 +366,7 @@ static struct i2c_driver sensor_emc1403 = {
366 .address_list = emc1403_address_list, 366 .address_list = emc1403_address_list,
367}; 367};
368 368
369static int __init sensor_emc1403_init(void) 369module_i2c_driver(sensor_emc1403);
370{
371 return i2c_add_driver(&sensor_emc1403);
372}
373
374static void __exit sensor_emc1403_exit(void)
375{
376 i2c_del_driver(&sensor_emc1403);
377}
378
379module_init(sensor_emc1403_init);
380module_exit(sensor_emc1403_exit);
381 370
382MODULE_AUTHOR("Kalhan Trisal <kalhan.trisal@intel.com"); 371MODULE_AUTHOR("Kalhan Trisal <kalhan.trisal@intel.com");
383MODULE_DESCRIPTION("emc1403 Thermal Driver"); 372MODULE_DESCRIPTION("emc1403 Thermal Driver");
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
725static int __init sensors_emc2103_init(void) 725module_i2c_driver(emc2103_driver);
726{
727 return i2c_add_driver(&emc2103_driver);
728}
729
730static void __exit sensors_emc2103_exit(void)
731{
732 i2c_del_driver(&emc2103_driver);
733}
734 726
735MODULE_AUTHOR("Steve Glendinning <steve.glendinning@smsc.com>"); 727MODULE_AUTHOR("Steve Glendinning <steve.glendinning@smsc.com>");
736MODULE_DESCRIPTION("SMSC EMC2103 hwmon driver"); 728MODULE_DESCRIPTION("SMSC EMC2103 hwmon driver");
737MODULE_LICENSE("GPL"); 729MODULE_LICENSE("GPL");
738
739module_init(sensors_emc2103_init);
740module_exit(sensors_emc2103_exit);
diff --git a/drivers/hwmon/emc6w201.c b/drivers/hwmon/emc6w201.c
index 6ebb9b738c9c..840f5112e602 100644
--- a/drivers/hwmon/emc6w201.c
+++ b/drivers/hwmon/emc6w201.c
@@ -552,17 +552,7 @@ static struct i2c_driver emc6w201_driver = {
552 .address_list = normal_i2c, 552 .address_list = normal_i2c,
553}; 553};
554 554
555static int __init sensors_emc6w201_init(void) 555module_i2c_driver(emc6w201_driver);
556{
557 return i2c_add_driver(&emc6w201_driver);
558}
559module_init(sensors_emc6w201_init);
560
561static void __exit sensors_emc6w201_exit(void)
562{
563 i2c_del_driver(&emc6w201_driver);
564}
565module_exit(sensors_emc6w201_exit);
566 556
567MODULE_AUTHOR("Jean Delvare <khali@linux-fr.org>"); 557MODULE_AUTHOR("Jean Delvare <khali@linux-fr.org>");
568MODULE_DESCRIPTION("SMSC EMC6W201 hardware monitoring driver"); 558MODULE_DESCRIPTION("SMSC EMC6W201 hardware monitoring driver");
diff --git a/drivers/hwmon/f75375s.c b/drivers/hwmon/f75375s.c
index 6aa5a9fad879..729499e75210 100644
--- a/drivers/hwmon/f75375s.c
+++ b/drivers/hwmon/f75375s.c
@@ -917,19 +917,8 @@ static int f75375_detect(struct i2c_client *client,
917 return 0; 917 return 0;
918} 918}
919 919
920static int __init sensors_f75375_init(void) 920module_i2c_driver(f75375_driver);
921{
922 return i2c_add_driver(&f75375_driver);
923}
924
925static void __exit sensors_f75375_exit(void)
926{
927 i2c_del_driver(&f75375_driver);
928}
929 921
930MODULE_AUTHOR("Riku Voipio"); 922MODULE_AUTHOR("Riku Voipio");
931MODULE_LICENSE("GPL"); 923MODULE_LICENSE("GPL");
932MODULE_DESCRIPTION("F75373/F75375/F75387 hardware monitoring driver"); 924MODULE_DESCRIPTION("F75373/F75375/F75387 hardware monitoring driver");
933
934module_init(sensors_f75375_init);
935module_exit(sensors_f75375_exit);
diff --git a/drivers/hwmon/fschmd.c b/drivers/hwmon/fschmd.c
index aa6d8b686f82..73ba942609c2 100644
--- a/drivers/hwmon/fschmd.c
+++ b/drivers/hwmon/fschmd.c
@@ -1314,20 +1314,9 @@ static struct fschmd_data *fschmd_update_device(struct device *dev)
1314 return data; 1314 return data;
1315} 1315}
1316 1316
1317static int __init fschmd_init(void) 1317module_i2c_driver(fschmd_driver);
1318{
1319 return i2c_add_driver(&fschmd_driver);
1320}
1321
1322static void __exit fschmd_exit(void)
1323{
1324 i2c_del_driver(&fschmd_driver);
1325}
1326 1318
1327MODULE_AUTHOR("Hans de Goede <hdegoede@redhat.com>"); 1319MODULE_AUTHOR("Hans de Goede <hdegoede@redhat.com>");
1328MODULE_DESCRIPTION("FSC Poseidon, Hermes, Scylla, Heracles, Heimdall, Hades " 1320MODULE_DESCRIPTION("FSC Poseidon, Hermes, Scylla, Heracles, Heimdall, Hades "
1329 "and Syleus driver"); 1321 "and Syleus driver");
1330MODULE_LICENSE("GPL"); 1322MODULE_LICENSE("GPL");
1331
1332module_init(fschmd_init);
1333module_exit(fschmd_exit);
diff --git a/drivers/hwmon/g760a.c b/drivers/hwmon/g760a.c
index 81b6e3533fd6..052e30484505 100644
--- a/drivers/hwmon/g760a.c
+++ b/drivers/hwmon/g760a.c
@@ -250,21 +250,8 @@ static int g760a_remove(struct i2c_client *client)
250 return 0; 250 return 0;
251} 251}
252 252
253/* module management */ 253module_i2c_driver(g760a_driver);
254
255static int __init g760a_init(void)
256{
257 return i2c_add_driver(&g760a_driver);
258}
259
260static void __exit g760a_exit(void)
261{
262 i2c_del_driver(&g760a_driver);
263}
264 254
265MODULE_AUTHOR("Herbert Valerio Riedel <hvr@gnu.org>"); 255MODULE_AUTHOR("Herbert Valerio Riedel <hvr@gnu.org>");
266MODULE_DESCRIPTION("GMT G760A driver"); 256MODULE_DESCRIPTION("GMT G760A driver");
267MODULE_LICENSE("GPL"); 257MODULE_LICENSE("GPL");
268
269module_init(g760a_init);
270module_exit(g760a_exit);
diff --git a/drivers/hwmon/gl518sm.c b/drivers/hwmon/gl518sm.c
index a13e2da97e30..89b8c0a4aca4 100644
--- a/drivers/hwmon/gl518sm.c
+++ b/drivers/hwmon/gl518sm.c
@@ -676,21 +676,10 @@ static struct gl518_data *gl518_update_device(struct device *dev)
676 return data; 676 return data;
677} 677}
678 678
679static int __init sensors_gl518sm_init(void) 679module_i2c_driver(gl518_driver);
680{
681 return i2c_add_driver(&gl518_driver);
682}
683
684static void __exit sensors_gl518sm_exit(void)
685{
686 i2c_del_driver(&gl518_driver);
687}
688 680
689MODULE_AUTHOR("Frodo Looijaard <frodol@dds.nl>, " 681MODULE_AUTHOR("Frodo Looijaard <frodol@dds.nl>, "
690 "Kyosti Malkki <kmalkki@cc.hut.fi> and " 682 "Kyosti Malkki <kmalkki@cc.hut.fi> and "
691 "Hong-Gunn Chew <hglinux@gunnet.org>"); 683 "Hong-Gunn Chew <hglinux@gunnet.org>");
692MODULE_DESCRIPTION("GL518SM driver"); 684MODULE_DESCRIPTION("GL518SM driver");
693MODULE_LICENSE("GPL"); 685MODULE_LICENSE("GPL");
694
695module_init(sensors_gl518sm_init);
696module_exit(sensors_gl518sm_exit);
diff --git a/drivers/hwmon/gl520sm.c b/drivers/hwmon/gl520sm.c
index cd6085bbfba7..e6dcf660e6ae 100644
--- a/drivers/hwmon/gl520sm.c
+++ b/drivers/hwmon/gl520sm.c
@@ -910,23 +910,10 @@ static struct gl520_data *gl520_update_device(struct device *dev)
910 return data; 910 return data;
911} 911}
912 912
913 913module_i2c_driver(gl520_driver);
914static int __init sensors_gl520sm_init(void)
915{
916 return i2c_add_driver(&gl520_driver);
917}
918
919static void __exit sensors_gl520sm_exit(void)
920{
921 i2c_del_driver(&gl520_driver);
922}
923
924 914
925MODULE_AUTHOR("Frodo Looijaard <frodol@dds.nl>, " 915MODULE_AUTHOR("Frodo Looijaard <frodol@dds.nl>, "
926 "Kyösti Mälkki <kmalkki@cc.hut.fi>, " 916 "Kyösti Mälkki <kmalkki@cc.hut.fi>, "
927 "Maarten Deprez <maartendeprez@users.sourceforge.net>"); 917 "Maarten Deprez <maartendeprez@users.sourceforge.net>");
928MODULE_DESCRIPTION("GL520SM driver"); 918MODULE_DESCRIPTION("GL520SM driver");
929MODULE_LICENSE("GPL"); 919MODULE_LICENSE("GPL");
930
931module_init(sensors_gl520sm_init);
932module_exit(sensors_gl520sm_exit);
diff --git a/drivers/hwmon/jc42.c b/drivers/hwmon/jc42.c
index b927ee5ccdd7..102e3ae397cc 100644
--- a/drivers/hwmon/jc42.c
+++ b/drivers/hwmon/jc42.c
@@ -614,19 +614,8 @@ abort:
614 return ret; 614 return ret;
615} 615}
616 616
617static int __init sensors_jc42_init(void) 617module_i2c_driver(jc42_driver);
618{
619 return i2c_add_driver(&jc42_driver);
620}
621
622static void __exit sensors_jc42_exit(void)
623{
624 i2c_del_driver(&jc42_driver);
625}
626 618
627MODULE_AUTHOR("Guenter Roeck <guenter.roeck@ericsson.com>"); 619MODULE_AUTHOR("Guenter Roeck <guenter.roeck@ericsson.com>");
628MODULE_DESCRIPTION("JC42 driver"); 620MODULE_DESCRIPTION("JC42 driver");
629MODULE_LICENSE("GPL"); 621MODULE_LICENSE("GPL");
630
631module_init(sensors_jc42_init);
632module_exit(sensors_jc42_exit);
diff --git a/drivers/hwmon/lineage-pem.c b/drivers/hwmon/lineage-pem.c
index 58eded27f385..5b8c9aeed3d6 100644
--- a/drivers/hwmon/lineage-pem.c
+++ b/drivers/hwmon/lineage-pem.c
@@ -568,19 +568,8 @@ static struct i2c_driver pem_driver = {
568 .id_table = pem_id, 568 .id_table = pem_id,
569}; 569};
570 570
571static int __init pem_init(void) 571module_i2c_driver(pem_driver);
572{
573 return i2c_add_driver(&pem_driver);
574}
575
576static void __exit pem_exit(void)
577{
578 i2c_del_driver(&pem_driver);
579}
580 572
581MODULE_AUTHOR("Guenter Roeck <guenter.roeck@ericsson.com>"); 573MODULE_AUTHOR("Guenter Roeck <guenter.roeck@ericsson.com>");
582MODULE_DESCRIPTION("Lineage CPL PEM hardware monitoring driver"); 574MODULE_DESCRIPTION("Lineage CPL PEM hardware monitoring driver");
583MODULE_LICENSE("GPL"); 575MODULE_LICENSE("GPL");
584
585module_init(pem_init);
586module_exit(pem_exit);
diff --git a/drivers/hwmon/lm63.c b/drivers/hwmon/lm63.c
index 5e6457a6644d..15c05cc83e2c 100644
--- a/drivers/hwmon/lm63.c
+++ b/drivers/hwmon/lm63.c
@@ -1119,19 +1119,8 @@ static struct lm63_data *lm63_update_device(struct device *dev)
1119 return data; 1119 return data;
1120} 1120}
1121 1121
1122static int __init sensors_lm63_init(void) 1122module_i2c_driver(lm63_driver);
1123{
1124 return i2c_add_driver(&lm63_driver);
1125}
1126
1127static void __exit sensors_lm63_exit(void)
1128{
1129 i2c_del_driver(&lm63_driver);
1130}
1131 1123
1132MODULE_AUTHOR("Jean Delvare <khali@linux-fr.org>"); 1124MODULE_AUTHOR("Jean Delvare <khali@linux-fr.org>");
1133MODULE_DESCRIPTION("LM63 driver"); 1125MODULE_DESCRIPTION("LM63 driver");
1134MODULE_LICENSE("GPL"); 1126MODULE_LICENSE("GPL");
1135
1136module_init(sensors_lm63_init);
1137module_exit(sensors_lm63_exit);
diff --git a/drivers/hwmon/lm73.c b/drivers/hwmon/lm73.c
index 9c8093c4b307..8fa2632cbbaf 100644
--- a/drivers/hwmon/lm73.c
+++ b/drivers/hwmon/lm73.c
@@ -194,21 +194,8 @@ static struct i2c_driver lm73_driver = {
194 .address_list = normal_i2c, 194 .address_list = normal_i2c,
195}; 195};
196 196
197/* module glue */ 197module_i2c_driver(lm73_driver);
198
199static int __init sensors_lm73_init(void)
200{
201 return i2c_add_driver(&lm73_driver);
202}
203
204static void __exit sensors_lm73_exit(void)
205{
206 i2c_del_driver(&lm73_driver);
207}
208 198
209MODULE_AUTHOR("Guillaume Ligneul <guillaume.ligneul@gmail.com>"); 199MODULE_AUTHOR("Guillaume Ligneul <guillaume.ligneul@gmail.com>");
210MODULE_DESCRIPTION("LM73 driver"); 200MODULE_DESCRIPTION("LM73 driver");
211MODULE_LICENSE("GPL"); 201MODULE_LICENSE("GPL");
212
213module_init(sensors_lm73_init);
214module_exit(sensors_lm73_exit);
diff --git a/drivers/hwmon/lm75.c b/drivers/hwmon/lm75.c
index b3311b1d3d92..a83f206af244 100644
--- a/drivers/hwmon/lm75.c
+++ b/drivers/hwmon/lm75.c
@@ -438,23 +438,8 @@ abort:
438 return ret; 438 return ret;
439} 439}
440 440
441/*-----------------------------------------------------------------------*/ 441module_i2c_driver(lm75_driver);
442
443/* module glue */
444
445static int __init sensors_lm75_init(void)
446{
447 return i2c_add_driver(&lm75_driver);
448}
449
450static void __exit sensors_lm75_exit(void)
451{
452 i2c_del_driver(&lm75_driver);
453}
454 442
455MODULE_AUTHOR("Frodo Looijaard <frodol@dds.nl>"); 443MODULE_AUTHOR("Frodo Looijaard <frodol@dds.nl>");
456MODULE_DESCRIPTION("LM75 driver"); 444MODULE_DESCRIPTION("LM75 driver");
457MODULE_LICENSE("GPL"); 445MODULE_LICENSE("GPL");
458
459module_init(sensors_lm75_init);
460module_exit(sensors_lm75_exit);
diff --git a/drivers/hwmon/lm77.c b/drivers/hwmon/lm77.c
index 8dfc6782d596..7cd516f888cc 100644
--- a/drivers/hwmon/lm77.c
+++ b/drivers/hwmon/lm77.c
@@ -420,19 +420,8 @@ static struct lm77_data *lm77_update_device(struct device *dev)
420 return data; 420 return data;
421} 421}
422 422
423static int __init sensors_lm77_init(void) 423module_i2c_driver(lm77_driver);
424{
425 return i2c_add_driver(&lm77_driver);
426}
427
428static void __exit sensors_lm77_exit(void)
429{
430 i2c_del_driver(&lm77_driver);
431}
432 424
433MODULE_AUTHOR("Andras BALI <drewie@freemail.hu>"); 425MODULE_AUTHOR("Andras BALI <drewie@freemail.hu>");
434MODULE_DESCRIPTION("LM77 driver"); 426MODULE_DESCRIPTION("LM77 driver");
435MODULE_LICENSE("GPL"); 427MODULE_LICENSE("GPL");
436
437module_init(sensors_lm77_init);
438module_exit(sensors_lm77_exit);
diff --git a/drivers/hwmon/lm80.c b/drivers/hwmon/lm80.c
index dc6df4efedc1..6a2a777fe9cb 100644
--- a/drivers/hwmon/lm80.c
+++ b/drivers/hwmon/lm80.c
@@ -697,20 +697,9 @@ done:
697 return ret; 697 return ret;
698} 698}
699 699
700static int __init sensors_lm80_init(void) 700module_i2c_driver(lm80_driver);
701{
702 return i2c_add_driver(&lm80_driver);
703}
704
705static void __exit sensors_lm80_exit(void)
706{
707 i2c_del_driver(&lm80_driver);
708}
709 701
710MODULE_AUTHOR("Frodo Looijaard <frodol@dds.nl> and " 702MODULE_AUTHOR("Frodo Looijaard <frodol@dds.nl> and "
711 "Philip Edelbrock <phil@netroedge.com>"); 703 "Philip Edelbrock <phil@netroedge.com>");
712MODULE_DESCRIPTION("LM80 driver"); 704MODULE_DESCRIPTION("LM80 driver");
713MODULE_LICENSE("GPL"); 705MODULE_LICENSE("GPL");
714
715module_init(sensors_lm80_init);
716module_exit(sensors_lm80_exit);
diff --git a/drivers/hwmon/lm83.c b/drivers/hwmon/lm83.c
index 1fed26579fdb..cd45b9d85584 100644
--- a/drivers/hwmon/lm83.c
+++ b/drivers/hwmon/lm83.c
@@ -430,19 +430,8 @@ static struct lm83_data *lm83_update_device(struct device *dev)
430 return data; 430 return data;
431} 431}
432 432
433static int __init sensors_lm83_init(void) 433module_i2c_driver(lm83_driver);
434{
435 return i2c_add_driver(&lm83_driver);
436}
437
438static void __exit sensors_lm83_exit(void)
439{
440 i2c_del_driver(&lm83_driver);
441}
442 434
443MODULE_AUTHOR("Jean Delvare <khali@linux-fr.org>"); 435MODULE_AUTHOR("Jean Delvare <khali@linux-fr.org>");
444MODULE_DESCRIPTION("LM83 driver"); 436MODULE_DESCRIPTION("LM83 driver");
445MODULE_LICENSE("GPL"); 437MODULE_LICENSE("GPL");
446
447module_init(sensors_lm83_init);
448module_exit(sensors_lm83_exit);
diff --git a/drivers/hwmon/lm85.c b/drivers/hwmon/lm85.c
index da72dc12068c..fd269831788f 100644
--- a/drivers/hwmon/lm85.c
+++ b/drivers/hwmon/lm85.c
@@ -1611,22 +1611,10 @@ static struct lm85_data *lm85_update_device(struct device *dev)
1611 return data; 1611 return data;
1612} 1612}
1613 1613
1614 1614module_i2c_driver(lm85_driver);
1615static int __init sm_lm85_init(void)
1616{
1617 return i2c_add_driver(&lm85_driver);
1618}
1619
1620static void __exit sm_lm85_exit(void)
1621{
1622 i2c_del_driver(&lm85_driver);
1623}
1624 1615
1625MODULE_LICENSE("GPL"); 1616MODULE_LICENSE("GPL");
1626MODULE_AUTHOR("Philip Pokorny <ppokorny@penguincomputing.com>, " 1617MODULE_AUTHOR("Philip Pokorny <ppokorny@penguincomputing.com>, "
1627 "Margit Schubert-While <margitsw@t-online.de>, " 1618 "Margit Schubert-While <margitsw@t-online.de>, "
1628 "Justin Thiessen <jthiessen@penguincomputing.com>"); 1619 "Justin Thiessen <jthiessen@penguincomputing.com>");
1629MODULE_DESCRIPTION("LM85-B, LM85-C driver"); 1620MODULE_DESCRIPTION("LM85-B, LM85-C driver");
1630
1631module_init(sm_lm85_init);
1632module_exit(sm_lm85_exit);
diff --git a/drivers/hwmon/lm87.c b/drivers/hwmon/lm87.c
index f1e6e7512ffa..126d0cc42090 100644
--- a/drivers/hwmon/lm87.c
+++ b/drivers/hwmon/lm87.c
@@ -963,19 +963,8 @@ static struct lm87_data *lm87_update_device(struct device *dev)
963 return data; 963 return data;
964} 964}
965 965
966static int __init sensors_lm87_init(void) 966module_i2c_driver(lm87_driver);
967{
968 return i2c_add_driver(&lm87_driver);
969}
970
971static void __exit sensors_lm87_exit(void)
972{
973 i2c_del_driver(&lm87_driver);
974}
975 967
976MODULE_AUTHOR("Jean Delvare <khali@linux-fr.org> and others"); 968MODULE_AUTHOR("Jean Delvare <khali@linux-fr.org> and others");
977MODULE_DESCRIPTION("LM87 driver"); 969MODULE_DESCRIPTION("LM87 driver");
978MODULE_LICENSE("GPL"); 970MODULE_LICENSE("GPL");
979
980module_init(sensors_lm87_init);
981module_exit(sensors_lm87_exit);
diff --git a/drivers/hwmon/lm90.c b/drivers/hwmon/lm90.c
index d2dd5f90496d..248f2b40dfaf 100644
--- a/drivers/hwmon/lm90.c
+++ b/drivers/hwmon/lm90.c
@@ -1514,19 +1514,8 @@ static struct i2c_driver lm90_driver = {
1514 .address_list = normal_i2c, 1514 .address_list = normal_i2c,
1515}; 1515};
1516 1516
1517static int __init sensors_lm90_init(void) 1517module_i2c_driver(lm90_driver);
1518{
1519 return i2c_add_driver(&lm90_driver);
1520}
1521
1522static void __exit sensors_lm90_exit(void)
1523{
1524 i2c_del_driver(&lm90_driver);
1525}
1526 1518
1527MODULE_AUTHOR("Jean Delvare <khali@linux-fr.org>"); 1519MODULE_AUTHOR("Jean Delvare <khali@linux-fr.org>");
1528MODULE_DESCRIPTION("LM90/ADM1032 driver"); 1520MODULE_DESCRIPTION("LM90/ADM1032 driver");
1529MODULE_LICENSE("GPL"); 1521MODULE_LICENSE("GPL");
1530
1531module_init(sensors_lm90_init);
1532module_exit(sensors_lm90_exit);
diff --git a/drivers/hwmon/lm92.c b/drivers/hwmon/lm92.c
index 8fcbd4d422c5..92f2d4684a3c 100644
--- a/drivers/hwmon/lm92.c
+++ b/drivers/hwmon/lm92.c
@@ -416,19 +416,8 @@ static struct i2c_driver lm92_driver = {
416 .address_list = normal_i2c, 416 .address_list = normal_i2c,
417}; 417};
418 418
419static int __init sensors_lm92_init(void) 419module_i2c_driver(lm92_driver);
420{
421 return i2c_add_driver(&lm92_driver);
422}
423
424static void __exit sensors_lm92_exit(void)
425{
426 i2c_del_driver(&lm92_driver);
427}
428 420
429MODULE_AUTHOR("Jean Delvare <khali@linux-fr.org>"); 421MODULE_AUTHOR("Jean Delvare <khali@linux-fr.org>");
430MODULE_DESCRIPTION("LM92/MAX6635 driver"); 422MODULE_DESCRIPTION("LM92/MAX6635 driver");
431MODULE_LICENSE("GPL"); 423MODULE_LICENSE("GPL");
432
433module_init(sensors_lm92_init);
434module_exit(sensors_lm92_exit);
diff --git a/drivers/hwmon/lm93.c b/drivers/hwmon/lm93.c
index 8bd6c5c9e05b..d08e6f2611b2 100644
--- a/drivers/hwmon/lm93.c
+++ b/drivers/hwmon/lm93.c
@@ -2635,20 +2635,9 @@ static struct i2c_driver lm93_driver = {
2635 .address_list = normal_i2c, 2635 .address_list = normal_i2c,
2636}; 2636};
2637 2637
2638static int __init lm93_init(void) 2638module_i2c_driver(lm93_driver);
2639{
2640 return i2c_add_driver(&lm93_driver);
2641}
2642
2643static void __exit lm93_exit(void)
2644{
2645 i2c_del_driver(&lm93_driver);
2646}
2647 2639
2648MODULE_AUTHOR("Mark M. Hoffman <mhoffman@lightlink.com>, " 2640MODULE_AUTHOR("Mark M. Hoffman <mhoffman@lightlink.com>, "
2649 "Hans J. Koch <hjk@hansjkoch.de>"); 2641 "Hans J. Koch <hjk@hansjkoch.de>");
2650MODULE_DESCRIPTION("LM93 driver"); 2642MODULE_DESCRIPTION("LM93 driver");
2651MODULE_LICENSE("GPL"); 2643MODULE_LICENSE("GPL");
2652
2653module_init(lm93_init);
2654module_exit(lm93_exit);
diff --git a/drivers/hwmon/lm95241.c b/drivers/hwmon/lm95241.c
index 70bca671e083..bd8cdb7b96ed 100644
--- a/drivers/hwmon/lm95241.c
+++ b/drivers/hwmon/lm95241.c
@@ -455,19 +455,8 @@ static struct i2c_driver lm95241_driver = {
455 .address_list = normal_i2c, 455 .address_list = normal_i2c,
456}; 456};
457 457
458static int __init sensors_lm95241_init(void) 458module_i2c_driver(lm95241_driver);
459{
460 return i2c_add_driver(&lm95241_driver);
461}
462
463static void __exit sensors_lm95241_exit(void)
464{
465 i2c_del_driver(&lm95241_driver);
466}
467 459
468MODULE_AUTHOR("Davide Rizzo <elpa.rizzo@gmail.com>"); 460MODULE_AUTHOR("Davide Rizzo <elpa.rizzo@gmail.com>");
469MODULE_DESCRIPTION("LM95241 sensor driver"); 461MODULE_DESCRIPTION("LM95241 sensor driver");
470MODULE_LICENSE("GPL"); 462MODULE_LICENSE("GPL");
471
472module_init(sensors_lm95241_init);
473module_exit(sensors_lm95241_exit);
diff --git a/drivers/hwmon/lm95245.c b/drivers/hwmon/lm95245.c
index 5e5fc1b0ace1..9a46c106a240 100644
--- a/drivers/hwmon/lm95245.c
+++ b/drivers/hwmon/lm95245.c
@@ -525,19 +525,8 @@ static struct i2c_driver lm95245_driver = {
525 .address_list = normal_i2c, 525 .address_list = normal_i2c,
526}; 526};
527 527
528static int __init sensors_lm95245_init(void) 528module_i2c_driver(lm95245_driver);
529{
530 return i2c_add_driver(&lm95245_driver);
531}
532
533static void __exit sensors_lm95245_exit(void)
534{
535 i2c_del_driver(&lm95245_driver);
536}
537 529
538MODULE_AUTHOR("Alexander Stein <alexander.stein@systec-electronic.com>"); 530MODULE_AUTHOR("Alexander Stein <alexander.stein@systec-electronic.com>");
539MODULE_DESCRIPTION("LM95245 sensor driver"); 531MODULE_DESCRIPTION("LM95245 sensor driver");
540MODULE_LICENSE("GPL"); 532MODULE_LICENSE("GPL");
541
542module_init(sensors_lm95245_init);
543module_exit(sensors_lm95245_exit);
diff --git a/drivers/hwmon/ltc4151.c b/drivers/hwmon/ltc4151.c
index 4ac06b75aa60..f646b4570c93 100644
--- a/drivers/hwmon/ltc4151.c
+++ b/drivers/hwmon/ltc4151.c
@@ -238,19 +238,8 @@ static struct i2c_driver ltc4151_driver = {
238 .id_table = ltc4151_id, 238 .id_table = ltc4151_id,
239}; 239};
240 240
241static int __init ltc4151_init(void) 241module_i2c_driver(ltc4151_driver);
242{
243 return i2c_add_driver(&ltc4151_driver);
244}
245
246static void __exit ltc4151_exit(void)
247{
248 i2c_del_driver(&ltc4151_driver);
249}
250 242
251MODULE_AUTHOR("Per Dalen <per.dalen@appeartv.com>"); 243MODULE_AUTHOR("Per Dalen <per.dalen@appeartv.com>");
252MODULE_DESCRIPTION("LTC4151 driver"); 244MODULE_DESCRIPTION("LTC4151 driver");
253MODULE_LICENSE("GPL"); 245MODULE_LICENSE("GPL");
254
255module_init(ltc4151_init);
256module_exit(ltc4151_exit);
diff --git a/drivers/hwmon/ltc4215.c b/drivers/hwmon/ltc4215.c
index c7e6d8e81656..0789b635ba86 100644
--- a/drivers/hwmon/ltc4215.c
+++ b/drivers/hwmon/ltc4215.c
@@ -309,19 +309,8 @@ static struct i2c_driver ltc4215_driver = {
309 .id_table = ltc4215_id, 309 .id_table = ltc4215_id,
310}; 310};
311 311
312static int __init ltc4215_init(void) 312module_i2c_driver(ltc4215_driver);
313{
314 return i2c_add_driver(&ltc4215_driver);
315}
316
317static void __exit ltc4215_exit(void)
318{
319 i2c_del_driver(&ltc4215_driver);
320}
321 313
322MODULE_AUTHOR("Ira W. Snyder <iws@ovro.caltech.edu>"); 314MODULE_AUTHOR("Ira W. Snyder <iws@ovro.caltech.edu>");
323MODULE_DESCRIPTION("LTC4215 driver"); 315MODULE_DESCRIPTION("LTC4215 driver");
324MODULE_LICENSE("GPL"); 316MODULE_LICENSE("GPL");
325
326module_init(ltc4215_init);
327module_exit(ltc4215_exit);
diff --git a/drivers/hwmon/ltc4245.c b/drivers/hwmon/ltc4245.c
index 659308329308..693a6bd4e5de 100644
--- a/drivers/hwmon/ltc4245.c
+++ b/drivers/hwmon/ltc4245.c
@@ -578,19 +578,8 @@ static struct i2c_driver ltc4245_driver = {
578 .id_table = ltc4245_id, 578 .id_table = ltc4245_id,
579}; 579};
580 580
581static int __init ltc4245_init(void) 581module_i2c_driver(ltc4245_driver);
582{
583 return i2c_add_driver(&ltc4245_driver);
584}
585
586static void __exit ltc4245_exit(void)
587{
588 i2c_del_driver(&ltc4245_driver);
589}
590 582
591MODULE_AUTHOR("Ira W. Snyder <iws@ovro.caltech.edu>"); 583MODULE_AUTHOR("Ira W. Snyder <iws@ovro.caltech.edu>");
592MODULE_DESCRIPTION("LTC4245 driver"); 584MODULE_DESCRIPTION("LTC4245 driver");
593MODULE_LICENSE("GPL"); 585MODULE_LICENSE("GPL");
594
595module_init(ltc4245_init);
596module_exit(ltc4245_exit);
diff --git a/drivers/hwmon/ltc4261.c b/drivers/hwmon/ltc4261.c
index ce5235560f01..ab1bfbf2a3f0 100644
--- a/drivers/hwmon/ltc4261.c
+++ b/drivers/hwmon/ltc4261.c
@@ -297,19 +297,8 @@ static struct i2c_driver ltc4261_driver = {
297 .id_table = ltc4261_id, 297 .id_table = ltc4261_id,
298}; 298};
299 299
300static int __init ltc4261_init(void) 300module_i2c_driver(ltc4261_driver);
301{
302 return i2c_add_driver(&ltc4261_driver);
303}
304
305static void __exit ltc4261_exit(void)
306{
307 i2c_del_driver(&ltc4261_driver);
308}
309 301
310MODULE_AUTHOR("Guenter Roeck <guenter.roeck@ericsson.com>"); 302MODULE_AUTHOR("Guenter Roeck <guenter.roeck@ericsson.com>");
311MODULE_DESCRIPTION("LTC4261 driver"); 303MODULE_DESCRIPTION("LTC4261 driver");
312MODULE_LICENSE("GPL"); 304MODULE_LICENSE("GPL");
313
314module_init(ltc4261_init);
315module_exit(ltc4261_exit);
diff --git a/drivers/hwmon/max16065.c b/drivers/hwmon/max16065.c
index f8e323ac6cb3..51edae93baa2 100644
--- a/drivers/hwmon/max16065.c
+++ b/drivers/hwmon/max16065.c
@@ -699,19 +699,8 @@ static struct i2c_driver max16065_driver = {
699 .id_table = max16065_id, 699 .id_table = max16065_id,
700}; 700};
701 701
702static int __init max16065_init(void) 702module_i2c_driver(max16065_driver);
703{
704 return i2c_add_driver(&max16065_driver);
705}
706
707static void __exit max16065_exit(void)
708{
709 i2c_del_driver(&max16065_driver);
710}
711 703
712MODULE_AUTHOR("Guenter Roeck <guenter.roeck@ericsson.com>"); 704MODULE_AUTHOR("Guenter Roeck <guenter.roeck@ericsson.com>");
713MODULE_DESCRIPTION("MAX16065 driver"); 705MODULE_DESCRIPTION("MAX16065 driver");
714MODULE_LICENSE("GPL"); 706MODULE_LICENSE("GPL");
715
716module_init(max16065_init);
717module_exit(max16065_exit);
diff --git a/drivers/hwmon/max1619.c b/drivers/hwmon/max1619.c
index 022ded098100..135822e05c4d 100644
--- a/drivers/hwmon/max1619.c
+++ b/drivers/hwmon/max1619.c
@@ -353,20 +353,9 @@ static struct max1619_data *max1619_update_device(struct device *dev)
353 return data; 353 return data;
354} 354}
355 355
356static int __init sensors_max1619_init(void) 356module_i2c_driver(max1619_driver);
357{
358 return i2c_add_driver(&max1619_driver);
359}
360
361static void __exit sensors_max1619_exit(void)
362{
363 i2c_del_driver(&max1619_driver);
364}
365 357
366MODULE_AUTHOR("Alexey Fisher <fishor@mail.ru> and " 358MODULE_AUTHOR("Alexey Fisher <fishor@mail.ru> and "
367 "Jean Delvare <khali@linux-fr.org>"); 359 "Jean Delvare <khali@linux-fr.org>");
368MODULE_DESCRIPTION("MAX1619 sensor driver"); 360MODULE_DESCRIPTION("MAX1619 sensor driver");
369MODULE_LICENSE("GPL"); 361MODULE_LICENSE("GPL");
370
371module_init(sensors_max1619_init);
372module_exit(sensors_max1619_exit);
diff --git a/drivers/hwmon/max1668.c b/drivers/hwmon/max1668.c
index 88953f99e914..12249f7bccf4 100644
--- a/drivers/hwmon/max1668.c
+++ b/drivers/hwmon/max1668.c
@@ -484,19 +484,8 @@ static struct i2c_driver max1668_driver = {
484 .address_list = max1668_addr_list, 484 .address_list = max1668_addr_list,
485}; 485};
486 486
487static int __init sensors_max1668_init(void) 487module_i2c_driver(max1668_driver);
488{
489 return i2c_add_driver(&max1668_driver);
490}
491
492static void __exit sensors_max1668_exit(void)
493{
494 i2c_del_driver(&max1668_driver);
495}
496 488
497MODULE_AUTHOR("David George <david.george@ska.ac.za>"); 489MODULE_AUTHOR("David George <david.george@ska.ac.za>");
498MODULE_DESCRIPTION("MAX1668 remote temperature sensor driver"); 490MODULE_DESCRIPTION("MAX1668 remote temperature sensor driver");
499MODULE_LICENSE("GPL"); 491MODULE_LICENSE("GPL");
500
501module_init(sensors_max1668_init)
502module_exit(sensors_max1668_exit)
diff --git a/drivers/hwmon/max6639.c b/drivers/hwmon/max6639.c
index a6760bacd915..193067e27b6f 100644
--- a/drivers/hwmon/max6639.c
+++ b/drivers/hwmon/max6639.c
@@ -637,19 +637,8 @@ static struct i2c_driver max6639_driver = {
637 .address_list = normal_i2c, 637 .address_list = normal_i2c,
638}; 638};
639 639
640static int __init max6639_init(void) 640module_i2c_driver(max6639_driver);
641{
642 return i2c_add_driver(&max6639_driver);
643}
644
645static void __exit max6639_exit(void)
646{
647 i2c_del_driver(&max6639_driver);
648}
649 641
650MODULE_AUTHOR("Roland Stigge <stigge@antcom.de>"); 642MODULE_AUTHOR("Roland Stigge <stigge@antcom.de>");
651MODULE_DESCRIPTION("max6639 driver"); 643MODULE_DESCRIPTION("max6639 driver");
652MODULE_LICENSE("GPL"); 644MODULE_LICENSE("GPL");
653
654module_init(max6639_init);
655module_exit(max6639_exit);
diff --git a/drivers/hwmon/max6642.c b/drivers/hwmon/max6642.c
index 209e8a526eb1..4298909a41fd 100644
--- a/drivers/hwmon/max6642.c
+++ b/drivers/hwmon/max6642.c
@@ -352,19 +352,8 @@ static struct i2c_driver max6642_driver = {
352 .address_list = normal_i2c, 352 .address_list = normal_i2c,
353}; 353};
354 354
355static int __init max6642_init(void) 355module_i2c_driver(max6642_driver);
356{
357 return i2c_add_driver(&max6642_driver);
358}
359
360static void __exit max6642_exit(void)
361{
362 i2c_del_driver(&max6642_driver);
363}
364 356
365MODULE_AUTHOR("Per Dalen <per.dalen@appeartv.com>"); 357MODULE_AUTHOR("Per Dalen <per.dalen@appeartv.com>");
366MODULE_DESCRIPTION("MAX6642 sensor driver"); 358MODULE_DESCRIPTION("MAX6642 sensor driver");
367MODULE_LICENSE("GPL"); 359MODULE_LICENSE("GPL");
368
369module_init(max6642_init);
370module_exit(max6642_exit);
diff --git a/drivers/hwmon/max6650.c b/drivers/hwmon/max6650.c
index 0998094a2871..33a8a7f15e18 100644
--- a/drivers/hwmon/max6650.c
+++ b/drivers/hwmon/max6650.c
@@ -731,19 +731,8 @@ static struct max6650_data *max6650_update_device(struct device *dev)
731 return data; 731 return data;
732} 732}
733 733
734static int __init sensors_max6650_init(void) 734module_i2c_driver(max6650_driver);
735{
736 return i2c_add_driver(&max6650_driver);
737}
738
739static void __exit sensors_max6650_exit(void)
740{
741 i2c_del_driver(&max6650_driver);
742}
743 735
744MODULE_AUTHOR("Hans J. Koch"); 736MODULE_AUTHOR("Hans J. Koch");
745MODULE_DESCRIPTION("MAX6650 sensor driver"); 737MODULE_DESCRIPTION("MAX6650 sensor driver");
746MODULE_LICENSE("GPL"); 738MODULE_LICENSE("GPL");
747
748module_init(sensors_max6650_init);
749module_exit(sensors_max6650_exit);
diff --git a/drivers/hwmon/pmbus/adm1275.c b/drivers/hwmon/pmbus/adm1275.c
index 81c7c2ead6f3..fe52c3cf87ba 100644
--- a/drivers/hwmon/pmbus/adm1275.c
+++ b/drivers/hwmon/pmbus/adm1275.c
@@ -326,18 +326,8 @@ static struct i2c_driver adm1275_driver = {
326 .id_table = adm1275_id, 326 .id_table = adm1275_id,
327}; 327};
328 328
329static int __init adm1275_init(void) 329module_i2c_driver(adm1275_driver);
330{
331 return i2c_add_driver(&adm1275_driver);
332}
333
334static void __exit adm1275_exit(void)
335{
336 i2c_del_driver(&adm1275_driver);
337}
338 330
339MODULE_AUTHOR("Guenter Roeck"); 331MODULE_AUTHOR("Guenter Roeck");
340MODULE_DESCRIPTION("PMBus driver for Analog Devices ADM1275 and compatibles"); 332MODULE_DESCRIPTION("PMBus driver for Analog Devices ADM1275 and compatibles");
341MODULE_LICENSE("GPL"); 333MODULE_LICENSE("GPL");
342module_init(adm1275_init);
343module_exit(adm1275_exit);
diff --git a/drivers/hwmon/pmbus/lm25066.c b/drivers/hwmon/pmbus/lm25066.c
index 84a37f0c8db6..86ac15ade6ab 100644
--- a/drivers/hwmon/pmbus/lm25066.c
+++ b/drivers/hwmon/pmbus/lm25066.c
@@ -334,18 +334,8 @@ static struct i2c_driver lm25066_driver = {
334 .id_table = lm25066_id, 334 .id_table = lm25066_id,
335}; 335};
336 336
337static int __init lm25066_init(void) 337module_i2c_driver(lm25066_driver);
338{
339 return i2c_add_driver(&lm25066_driver);
340}
341
342static void __exit lm25066_exit(void)
343{
344 i2c_del_driver(&lm25066_driver);
345}
346 338
347MODULE_AUTHOR("Guenter Roeck"); 339MODULE_AUTHOR("Guenter Roeck");
348MODULE_DESCRIPTION("PMBus driver for LM25066/LM5064/LM5066"); 340MODULE_DESCRIPTION("PMBus driver for LM25066/LM5064/LM5066");
349MODULE_LICENSE("GPL"); 341MODULE_LICENSE("GPL");
350module_init(lm25066_init);
351module_exit(lm25066_exit);
diff --git a/drivers/hwmon/pmbus/ltc2978.c b/drivers/hwmon/pmbus/ltc2978.c
index 820fff48910b..c9e4dd20bf9c 100644
--- a/drivers/hwmon/pmbus/ltc2978.c
+++ b/drivers/hwmon/pmbus/ltc2978.c
@@ -391,18 +391,8 @@ static struct i2c_driver ltc2978_driver = {
391 .id_table = ltc2978_id, 391 .id_table = ltc2978_id,
392}; 392};
393 393
394static int __init ltc2978_init(void) 394module_i2c_driver(ltc2978_driver);
395{
396 return i2c_add_driver(&ltc2978_driver);
397}
398
399static void __exit ltc2978_exit(void)
400{
401 i2c_del_driver(&ltc2978_driver);
402}
403 395
404MODULE_AUTHOR("Guenter Roeck"); 396MODULE_AUTHOR("Guenter Roeck");
405MODULE_DESCRIPTION("PMBus driver for LTC2978 and LTC3880"); 397MODULE_DESCRIPTION("PMBus driver for LTC2978 and LTC3880");
406MODULE_LICENSE("GPL"); 398MODULE_LICENSE("GPL");
407module_init(ltc2978_init);
408module_exit(ltc2978_exit);
diff --git a/drivers/hwmon/pmbus/max16064.c b/drivers/hwmon/pmbus/max16064.c
index 1d77cf4d2d44..5cfe20f1e030 100644
--- a/drivers/hwmon/pmbus/max16064.c
+++ b/drivers/hwmon/pmbus/max16064.c
@@ -126,18 +126,8 @@ static struct i2c_driver max16064_driver = {
126 .id_table = max16064_id, 126 .id_table = max16064_id,
127}; 127};
128 128
129static int __init max16064_init(void) 129module_i2c_driver(max16064_driver);
130{
131 return i2c_add_driver(&max16064_driver);
132}
133
134static void __exit max16064_exit(void)
135{
136 i2c_del_driver(&max16064_driver);
137}
138 130
139MODULE_AUTHOR("Guenter Roeck"); 131MODULE_AUTHOR("Guenter Roeck");
140MODULE_DESCRIPTION("PMBus driver for Maxim MAX16064"); 132MODULE_DESCRIPTION("PMBus driver for Maxim MAX16064");
141MODULE_LICENSE("GPL"); 133MODULE_LICENSE("GPL");
142module_init(max16064_init);
143module_exit(max16064_exit);
diff --git a/drivers/hwmon/pmbus/max34440.c b/drivers/hwmon/pmbus/max34440.c
index 9b97a5b3cf3d..d9026f9ff13e 100644
--- a/drivers/hwmon/pmbus/max34440.c
+++ b/drivers/hwmon/pmbus/max34440.c
@@ -248,18 +248,8 @@ static struct i2c_driver max34440_driver = {
248 .id_table = max34440_id, 248 .id_table = max34440_id,
249}; 249};
250 250
251static int __init max34440_init(void) 251module_i2c_driver(max34440_driver);
252{
253 return i2c_add_driver(&max34440_driver);
254}
255
256static void __exit max34440_exit(void)
257{
258 i2c_del_driver(&max34440_driver);
259}
260 252
261MODULE_AUTHOR("Guenter Roeck"); 253MODULE_AUTHOR("Guenter Roeck");
262MODULE_DESCRIPTION("PMBus driver for Maxim MAX34440/MAX34441"); 254MODULE_DESCRIPTION("PMBus driver for Maxim MAX34440/MAX34441");
263MODULE_LICENSE("GPL"); 255MODULE_LICENSE("GPL");
264module_init(max34440_init);
265module_exit(max34440_exit);
diff --git a/drivers/hwmon/pmbus/max8688.c b/drivers/hwmon/pmbus/max8688.c
index e2b74bb399ba..82c598d7cfa3 100644
--- a/drivers/hwmon/pmbus/max8688.c
+++ b/drivers/hwmon/pmbus/max8688.c
@@ -203,18 +203,8 @@ static struct i2c_driver max8688_driver = {
203 .id_table = max8688_id, 203 .id_table = max8688_id,
204}; 204};
205 205
206static int __init max8688_init(void) 206module_i2c_driver(max8688_driver);
207{
208 return i2c_add_driver(&max8688_driver);
209}
210
211static void __exit max8688_exit(void)
212{
213 i2c_del_driver(&max8688_driver);
214}
215 207
216MODULE_AUTHOR("Guenter Roeck"); 208MODULE_AUTHOR("Guenter Roeck");
217MODULE_DESCRIPTION("PMBus driver for Maxim MAX8688"); 209MODULE_DESCRIPTION("PMBus driver for Maxim MAX8688");
218MODULE_LICENSE("GPL"); 210MODULE_LICENSE("GPL");
219module_init(max8688_init);
220module_exit(max8688_exit);
diff --git a/drivers/hwmon/pmbus/pmbus.c b/drivers/hwmon/pmbus/pmbus.c
index 18a385e753d7..da5fe361a940 100644
--- a/drivers/hwmon/pmbus/pmbus.c
+++ b/drivers/hwmon/pmbus/pmbus.c
@@ -224,18 +224,8 @@ static struct i2c_driver pmbus_driver = {
224 .id_table = pmbus_id, 224 .id_table = pmbus_id,
225}; 225};
226 226
227static int __init pmbus_init(void) 227module_i2c_driver(pmbus_driver);
228{
229 return i2c_add_driver(&pmbus_driver);
230}
231
232static void __exit pmbus_exit(void)
233{
234 i2c_del_driver(&pmbus_driver);
235}
236 228
237MODULE_AUTHOR("Guenter Roeck"); 229MODULE_AUTHOR("Guenter Roeck");
238MODULE_DESCRIPTION("Generic PMBus driver"); 230MODULE_DESCRIPTION("Generic PMBus driver");
239MODULE_LICENSE("GPL"); 231MODULE_LICENSE("GPL");
240module_init(pmbus_init);
241module_exit(pmbus_exit);
diff --git a/drivers/hwmon/pmbus/ucd9000.c b/drivers/hwmon/pmbus/ucd9000.c
index 4ff6cf289f85..759a563de636 100644
--- a/drivers/hwmon/pmbus/ucd9000.c
+++ b/drivers/hwmon/pmbus/ucd9000.c
@@ -258,18 +258,8 @@ static struct i2c_driver ucd9000_driver = {
258 .id_table = ucd9000_id, 258 .id_table = ucd9000_id,
259}; 259};
260 260
261static int __init ucd9000_init(void) 261module_i2c_driver(ucd9000_driver);
262{
263 return i2c_add_driver(&ucd9000_driver);
264}
265
266static void __exit ucd9000_exit(void)
267{
268 i2c_del_driver(&ucd9000_driver);
269}
270 262
271MODULE_AUTHOR("Guenter Roeck"); 263MODULE_AUTHOR("Guenter Roeck");
272MODULE_DESCRIPTION("PMBus driver for TI UCD90xxx"); 264MODULE_DESCRIPTION("PMBus driver for TI UCD90xxx");
273MODULE_LICENSE("GPL"); 265MODULE_LICENSE("GPL");
274module_init(ucd9000_init);
275module_exit(ucd9000_exit);
diff --git a/drivers/hwmon/pmbus/ucd9200.c b/drivers/hwmon/pmbus/ucd9200.c
index 6e1c1a80ab85..629d0c93cac6 100644
--- a/drivers/hwmon/pmbus/ucd9200.c
+++ b/drivers/hwmon/pmbus/ucd9200.c
@@ -190,18 +190,8 @@ static struct i2c_driver ucd9200_driver = {
190 .id_table = ucd9200_id, 190 .id_table = ucd9200_id,
191}; 191};
192 192
193static int __init ucd9200_init(void) 193module_i2c_driver(ucd9200_driver);
194{
195 return i2c_add_driver(&ucd9200_driver);
196}
197
198static void __exit ucd9200_exit(void)
199{
200 i2c_del_driver(&ucd9200_driver);
201}
202 194
203MODULE_AUTHOR("Guenter Roeck"); 195MODULE_AUTHOR("Guenter Roeck");
204MODULE_DESCRIPTION("PMBus driver for TI UCD922x, UCD924x"); 196MODULE_DESCRIPTION("PMBus driver for TI UCD922x, UCD924x");
205MODULE_LICENSE("GPL"); 197MODULE_LICENSE("GPL");
206module_init(ucd9200_init);
207module_exit(ucd9200_exit);
diff --git a/drivers/hwmon/pmbus/zl6100.c b/drivers/hwmon/pmbus/zl6100.c
index e3e8420b7b81..8ae658118bec 100644
--- a/drivers/hwmon/pmbus/zl6100.c
+++ b/drivers/hwmon/pmbus/zl6100.c
@@ -264,18 +264,8 @@ static struct i2c_driver zl6100_driver = {
264 .id_table = zl6100_id, 264 .id_table = zl6100_id,
265}; 265};
266 266
267static int __init zl6100_init(void) 267module_i2c_driver(zl6100_driver);
268{
269 return i2c_add_driver(&zl6100_driver);
270}
271
272static void __exit zl6100_exit(void)
273{
274 i2c_del_driver(&zl6100_driver);
275}
276 268
277MODULE_AUTHOR("Guenter Roeck"); 269MODULE_AUTHOR("Guenter Roeck");
278MODULE_DESCRIPTION("PMBus driver for ZL6100 and compatibles"); 270MODULE_DESCRIPTION("PMBus driver for ZL6100 and compatibles");
279MODULE_LICENSE("GPL"); 271MODULE_LICENSE("GPL");
280module_init(zl6100_init);
281module_exit(zl6100_exit);
diff --git a/drivers/hwmon/sht21.c b/drivers/hwmon/sht21.c
index 15398780cc00..6c2dede4b8e7 100644
--- a/drivers/hwmon/sht21.c
+++ b/drivers/hwmon/sht21.c
@@ -261,28 +261,7 @@ static struct i2c_driver sht21_driver = {
261 .id_table = sht21_id, 261 .id_table = sht21_id,
262}; 262};
263 263
264/** 264module_i2c_driver(sht21_driver);
265 * sht21_init() - initialize driver
266 *
267 * Called when kernel is booted or module is inserted.
268 * Returns 0 on success.
269 */
270static int __init sht21_init(void)
271{
272 return i2c_add_driver(&sht21_driver);
273}
274module_init(sht21_init);
275
276/**
277 * sht21_init() - clean up driver
278 *
279 * Called when module is removed.
280 */
281static void __exit sht21_exit(void)
282{
283 i2c_del_driver(&sht21_driver);
284}
285module_exit(sht21_exit);
286 265
287MODULE_AUTHOR("Urs Fleisch <urs.fleisch@sensirion.com>"); 266MODULE_AUTHOR("Urs Fleisch <urs.fleisch@sensirion.com>");
288MODULE_DESCRIPTION("Sensirion SHT21 humidity and temperature sensor driver"); 267MODULE_DESCRIPTION("Sensirion SHT21 humidity and temperature sensor driver");
diff --git a/drivers/hwmon/smm665.c b/drivers/hwmon/smm665.c
index 1b4301f93787..24382c735e56 100644
--- a/drivers/hwmon/smm665.c
+++ b/drivers/hwmon/smm665.c
@@ -718,19 +718,8 @@ static struct i2c_driver smm665_driver = {
718 .id_table = smm665_id, 718 .id_table = smm665_id,
719}; 719};
720 720
721static int __init smm665_init(void) 721module_i2c_driver(smm665_driver);
722{
723 return i2c_add_driver(&smm665_driver);
724}
725
726static void __exit smm665_exit(void)
727{
728 i2c_del_driver(&smm665_driver);
729}
730 722
731MODULE_AUTHOR("Guenter Roeck"); 723MODULE_AUTHOR("Guenter Roeck");
732MODULE_DESCRIPTION("SMM665 driver"); 724MODULE_DESCRIPTION("SMM665 driver");
733MODULE_LICENSE("GPL"); 725MODULE_LICENSE("GPL");
734
735module_init(smm665_init);
736module_exit(smm665_exit);
diff --git a/drivers/hwmon/smsc47m192.c b/drivers/hwmon/smsc47m192.c
index 40b26673d87f..8f88908cf78a 100644
--- a/drivers/hwmon/smsc47m192.c
+++ b/drivers/hwmon/smsc47m192.c
@@ -635,19 +635,8 @@ static struct smsc47m192_data *smsc47m192_update_device(struct device *dev)
635 return data; 635 return data;
636} 636}
637 637
638static int __init smsc47m192_init(void) 638module_i2c_driver(smsc47m192_driver);
639{
640 return i2c_add_driver(&smsc47m192_driver);
641}
642
643static void __exit smsc47m192_exit(void)
644{
645 i2c_del_driver(&smsc47m192_driver);
646}
647 639
648MODULE_AUTHOR("Hartmut Rick <linux@rick.claranet.de>"); 640MODULE_AUTHOR("Hartmut Rick <linux@rick.claranet.de>");
649MODULE_DESCRIPTION("SMSC47M192 driver"); 641MODULE_DESCRIPTION("SMSC47M192 driver");
650MODULE_LICENSE("GPL"); 642MODULE_LICENSE("GPL");
651
652module_init(smsc47m192_init);
653module_exit(smsc47m192_exit);
diff --git a/drivers/hwmon/thmc50.c b/drivers/hwmon/thmc50.c
index 7dfb4dec4c5f..bd83bc0cd8cd 100644
--- a/drivers/hwmon/thmc50.c
+++ b/drivers/hwmon/thmc50.c
@@ -465,18 +465,7 @@ static struct thmc50_data *thmc50_update_device(struct device *dev)
465 return data; 465 return data;
466} 466}
467 467
468static int __init sm_thmc50_init(void) 468module_i2c_driver(thmc50_driver);
469{
470 return i2c_add_driver(&thmc50_driver);
471}
472
473static void __exit sm_thmc50_exit(void)
474{
475 i2c_del_driver(&thmc50_driver);
476}
477 469
478MODULE_AUTHOR("Krzysztof Helt <krzysztof.h1@wp.pl>"); 470MODULE_AUTHOR("Krzysztof Helt <krzysztof.h1@wp.pl>");
479MODULE_DESCRIPTION("THMC50 driver"); 471MODULE_DESCRIPTION("THMC50 driver");
480
481module_init(sm_thmc50_init);
482module_exit(sm_thmc50_exit);
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
295static int __init tmp102_init(void) 295module_i2c_driver(tmp102_driver);
296{
297 return i2c_add_driver(&tmp102_driver);
298}
299module_init(tmp102_init);
300
301static void __exit tmp102_exit(void)
302{
303 i2c_del_driver(&tmp102_driver);
304}
305module_exit(tmp102_exit);
306 296
307MODULE_AUTHOR("Steven King <sfking@fdwdc.com>"); 297MODULE_AUTHOR("Steven King <sfking@fdwdc.com>");
308MODULE_DESCRIPTION("Texas Instruments TMP102 temperature sensor driver"); 298MODULE_DESCRIPTION("Texas Instruments TMP102 temperature sensor driver");
diff --git a/drivers/hwmon/tmp401.c b/drivers/hwmon/tmp401.c
index 8b9a77486d57..92b7f1b27f2e 100644
--- a/drivers/hwmon/tmp401.c
+++ b/drivers/hwmon/tmp401.c
@@ -662,19 +662,8 @@ static struct i2c_driver tmp401_driver = {
662 .address_list = normal_i2c, 662 .address_list = normal_i2c,
663}; 663};
664 664
665static int __init tmp401_init(void) 665module_i2c_driver(tmp401_driver);
666{
667 return i2c_add_driver(&tmp401_driver);
668}
669
670static void __exit tmp401_exit(void)
671{
672 i2c_del_driver(&tmp401_driver);
673}
674 666
675MODULE_AUTHOR("Hans de Goede <hdegoede@redhat.com>"); 667MODULE_AUTHOR("Hans de Goede <hdegoede@redhat.com>");
676MODULE_DESCRIPTION("Texas Instruments TMP401 temperature sensor driver"); 668MODULE_DESCRIPTION("Texas Instruments TMP401 temperature sensor driver");
677MODULE_LICENSE("GPL"); 669MODULE_LICENSE("GPL");
678
679module_init(tmp401_init);
680module_exit(tmp401_exit);
diff --git a/drivers/hwmon/tmp421.c b/drivers/hwmon/tmp421.c
index c48381f2cd02..8fac87a38544 100644
--- a/drivers/hwmon/tmp421.c
+++ b/drivers/hwmon/tmp421.c
@@ -324,20 +324,9 @@ static struct i2c_driver tmp421_driver = {
324 .address_list = normal_i2c, 324 .address_list = normal_i2c,
325}; 325};
326 326
327static int __init tmp421_init(void) 327module_i2c_driver(tmp421_driver);
328{
329 return i2c_add_driver(&tmp421_driver);
330}
331
332static void __exit tmp421_exit(void)
333{
334 i2c_del_driver(&tmp421_driver);
335}
336 328
337MODULE_AUTHOR("Andre Prendel <andre.prendel@gmx.de>"); 329MODULE_AUTHOR("Andre Prendel <andre.prendel@gmx.de>");
338MODULE_DESCRIPTION("Texas Instruments TMP421/422/423 temperature sensor" 330MODULE_DESCRIPTION("Texas Instruments TMP421/422/423 temperature sensor"
339 " driver"); 331 " driver");
340MODULE_LICENSE("GPL"); 332MODULE_LICENSE("GPL");
341
342module_init(tmp421_init);
343module_exit(tmp421_exit);
diff --git a/drivers/hwmon/w83791d.c b/drivers/hwmon/w83791d.c
index 35aa5149307a..1ff97b0e867a 100644
--- a/drivers/hwmon/w83791d.c
+++ b/drivers/hwmon/w83791d.c
@@ -1625,19 +1625,8 @@ static void w83791d_print_debug(struct w83791d_data *data, struct device *dev)
1625} 1625}
1626#endif 1626#endif
1627 1627
1628static int __init sensors_w83791d_init(void) 1628module_i2c_driver(w83791d_driver);
1629{
1630 return i2c_add_driver(&w83791d_driver);
1631}
1632
1633static void __exit sensors_w83791d_exit(void)
1634{
1635 i2c_del_driver(&w83791d_driver);
1636}
1637 1629
1638MODULE_AUTHOR("Charles Spirakis <bezaur@gmail.com>"); 1630MODULE_AUTHOR("Charles Spirakis <bezaur@gmail.com>");
1639MODULE_DESCRIPTION("W83791D driver"); 1631MODULE_DESCRIPTION("W83791D driver");
1640MODULE_LICENSE("GPL"); 1632MODULE_LICENSE("GPL");
1641
1642module_init(sensors_w83791d_init);
1643module_exit(sensors_w83791d_exit);
diff --git a/drivers/hwmon/w83792d.c b/drivers/hwmon/w83792d.c
index 0952a2cc0545..a87c4bd2eccf 100644
--- a/drivers/hwmon/w83792d.c
+++ b/drivers/hwmon/w83792d.c
@@ -1641,22 +1641,8 @@ static void w83792d_print_debug(struct w83792d_data *data, struct device *dev)
1641} 1641}
1642#endif 1642#endif
1643 1643
1644static int __init 1644module_i2c_driver(w83792d_driver);
1645sensors_w83792d_init(void)
1646{
1647 return i2c_add_driver(&w83792d_driver);
1648}
1649
1650static void __exit
1651sensors_w83792d_exit(void)
1652{
1653 i2c_del_driver(&w83792d_driver);
1654}
1655 1645
1656MODULE_AUTHOR("Chunhao Huang @ Winbond <DZShen@Winbond.com.tw>"); 1646MODULE_AUTHOR("Chunhao Huang @ Winbond <DZShen@Winbond.com.tw>");
1657MODULE_DESCRIPTION("W83792AD/D driver for linux-2.6"); 1647MODULE_DESCRIPTION("W83792AD/D driver for linux-2.6");
1658MODULE_LICENSE("GPL"); 1648MODULE_LICENSE("GPL");
1659
1660module_init(sensors_w83792d_init);
1661module_exit(sensors_w83792d_exit);
1662
diff --git a/drivers/hwmon/w83793.c b/drivers/hwmon/w83793.c
index d10ae4da1587..742bf1355f3d 100644
--- a/drivers/hwmon/w83793.c
+++ b/drivers/hwmon/w83793.c
@@ -2120,19 +2120,8 @@ END:
2120 return res; 2120 return res;
2121} 2121}
2122 2122
2123static int __init sensors_w83793_init(void) 2123module_i2c_driver(w83793_driver);
2124{
2125 return i2c_add_driver(&w83793_driver);
2126}
2127
2128static void __exit sensors_w83793_exit(void)
2129{
2130 i2c_del_driver(&w83793_driver);
2131}
2132 2124
2133MODULE_AUTHOR("Yuan Mu, Sven Anders"); 2125MODULE_AUTHOR("Yuan Mu, Sven Anders");
2134MODULE_DESCRIPTION("w83793 driver"); 2126MODULE_DESCRIPTION("w83793 driver");
2135MODULE_LICENSE("GPL"); 2127MODULE_LICENSE("GPL");
2136
2137module_init(sensors_w83793_init);
2138module_exit(sensors_w83793_exit);
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
2247static int __init sensors_w83795_init(void) 2247module_i2c_driver(w83795_driver);
2248{
2249 return i2c_add_driver(&w83795_driver);
2250}
2251
2252static void __exit sensors_w83795_exit(void)
2253{
2254 i2c_del_driver(&w83795_driver);
2255}
2256 2248
2257MODULE_AUTHOR("Wei Song, Jean Delvare <khali@linux-fr.org>"); 2249MODULE_AUTHOR("Wei Song, Jean Delvare <khali@linux-fr.org>");
2258MODULE_DESCRIPTION("W83795G/ADG hardware monitoring driver"); 2250MODULE_DESCRIPTION("W83795G/ADG hardware monitoring driver");
2259MODULE_LICENSE("GPL"); 2251MODULE_LICENSE("GPL");
2260
2261module_init(sensors_w83795_init);
2262module_exit(sensors_w83795_exit);
diff --git a/drivers/hwmon/w83l785ts.c b/drivers/hwmon/w83l785ts.c
index edfc1ec7e77a..bc071441a3fe 100644
--- a/drivers/hwmon/w83l785ts.c
+++ b/drivers/hwmon/w83l785ts.c
@@ -302,19 +302,8 @@ static struct w83l785ts_data *w83l785ts_update_device(struct device *dev)
302 return data; 302 return data;
303} 303}
304 304
305static int __init sensors_w83l785ts_init(void) 305module_i2c_driver(w83l785ts_driver);
306{
307 return i2c_add_driver(&w83l785ts_driver);
308}
309
310static void __exit sensors_w83l785ts_exit(void)
311{
312 i2c_del_driver(&w83l785ts_driver);
313}
314 306
315MODULE_AUTHOR("Jean Delvare <khali@linux-fr.org>"); 307MODULE_AUTHOR("Jean Delvare <khali@linux-fr.org>");
316MODULE_DESCRIPTION("W83L785TS-S driver"); 308MODULE_DESCRIPTION("W83L785TS-S driver");
317MODULE_LICENSE("GPL"); 309MODULE_LICENSE("GPL");
318
319module_init(sensors_w83l785ts_init);
320module_exit(sensors_w83l785ts_exit);
diff --git a/drivers/hwmon/w83l786ng.c b/drivers/hwmon/w83l786ng.c
index baa5f0b24f80..deac4b625305 100644
--- a/drivers/hwmon/w83l786ng.c
+++ b/drivers/hwmon/w83l786ng.c
@@ -769,21 +769,8 @@ static struct w83l786ng_data *w83l786ng_update_device(struct device *dev)
769 return data; 769 return data;
770} 770}
771 771
772static int __init 772module_i2c_driver(w83l786ng_driver);
773sensors_w83l786ng_init(void)
774{
775 return i2c_add_driver(&w83l786ng_driver);
776}
777
778static void __exit
779sensors_w83l786ng_exit(void)
780{
781 i2c_del_driver(&w83l786ng_driver);
782}
783 773
784MODULE_AUTHOR("Kevin Lo"); 774MODULE_AUTHOR("Kevin Lo");
785MODULE_DESCRIPTION("w83l786ng driver"); 775MODULE_DESCRIPTION("w83l786ng driver");
786MODULE_LICENSE("GPL"); 776MODULE_LICENSE("GPL");
787
788module_init(sensors_w83l786ng_init);
789module_exit(sensors_w83l786ng_exit);