diff options
author | Axel Lin <axel.lin@gmail.com> | 2012-01-20 02:38:18 -0500 |
---|---|---|
committer | Guenter Roeck <guenter.roeck@ericsson.com> | 2012-03-18 21:26:50 -0400 |
commit | f0967eea80ec2a19a4fe1ad27e3ff1b22c79a3c7 (patch) | |
tree | c0c6af7362f5ba5ea2220fba236f1b2e48defcca /drivers/hwmon | |
parent | 61ba031841ad60c4a9ea16b20dd46b6cdb0faf2a (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')
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 | ||
259 | static int __init ad7414_init(void) | 259 | module_i2c_driver(ad7414_driver); |
260 | { | ||
261 | return i2c_add_driver(&ad7414_driver); | ||
262 | } | ||
263 | module_init(ad7414_init); | ||
264 | |||
265 | static void __exit ad7414_exit(void) | ||
266 | { | ||
267 | i2c_del_driver(&ad7414_driver); | ||
268 | } | ||
269 | module_exit(ad7414_exit); | ||
270 | 260 | ||
271 | MODULE_AUTHOR("Stefan Roese <sr at denx.de>, " | 261 | MODULE_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 | ||
298 | static int __init ad7418_init(void) | 298 | module_i2c_driver(ad7418_driver); |
299 | { | ||
300 | return i2c_add_driver(&ad7418_driver); | ||
301 | } | ||
302 | |||
303 | static void __exit ad7418_exit(void) | ||
304 | { | ||
305 | i2c_del_driver(&ad7418_driver); | ||
306 | } | ||
307 | 299 | ||
308 | MODULE_AUTHOR("Alessandro Zummo <a.zummo@towertech.it>"); | 300 | MODULE_AUTHOR("Alessandro Zummo <a.zummo@towertech.it>"); |
309 | MODULE_DESCRIPTION("AD7416/17/18 driver"); | 301 | MODULE_DESCRIPTION("AD7416/17/18 driver"); |
310 | MODULE_LICENSE("GPL"); | 302 | MODULE_LICENSE("GPL"); |
311 | MODULE_VERSION(DRV_VERSION); | 303 | MODULE_VERSION(DRV_VERSION); |
312 | |||
313 | module_init(ad7418_init); | ||
314 | module_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 | ||
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) | ||
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 | ||
621 | static int __init sensors_adm1025_init(void) | 621 | module_i2c_driver(adm1025_driver); |
622 | { | ||
623 | return i2c_add_driver(&adm1025_driver); | ||
624 | } | ||
625 | |||
626 | static void __exit sensors_adm1025_exit(void) | ||
627 | { | ||
628 | i2c_del_driver(&adm1025_driver); | ||
629 | } | ||
630 | 622 | ||
631 | MODULE_AUTHOR("Jean Delvare <khali@linux-fr.org>"); | 623 | MODULE_AUTHOR("Jean Delvare <khali@linux-fr.org>"); |
632 | MODULE_DESCRIPTION("ADM1025 driver"); | 624 | MODULE_DESCRIPTION("ADM1025 driver"); |
633 | MODULE_LICENSE("GPL"); | 625 | MODULE_LICENSE("GPL"); |
634 | |||
635 | module_init(sensors_adm1025_init); | ||
636 | module_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 | ||
1764 | static int __init sm_adm1026_init(void) | 1764 | module_i2c_driver(adm1026_driver); |
1765 | { | ||
1766 | return i2c_add_driver(&adm1026_driver); | ||
1767 | } | ||
1768 | |||
1769 | static void __exit sm_adm1026_exit(void) | ||
1770 | { | ||
1771 | i2c_del_driver(&adm1026_driver); | ||
1772 | } | ||
1773 | 1765 | ||
1774 | MODULE_LICENSE("GPL"); | 1766 | MODULE_LICENSE("GPL"); |
1775 | MODULE_AUTHOR("Philip Pokorny <ppokorny@penguincomputing.com>, " | 1767 | MODULE_AUTHOR("Philip Pokorny <ppokorny@penguincomputing.com>, " |
1776 | "Justin Thiessen <jthiessen@penguincomputing.com>"); | 1768 | "Justin Thiessen <jthiessen@penguincomputing.com>"); |
1777 | MODULE_DESCRIPTION("ADM1026 driver"); | 1769 | MODULE_DESCRIPTION("ADM1026 driver"); |
1778 | |||
1779 | module_init(sm_adm1026_init); | ||
1780 | module_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 | /* | 453 | module_i2c_driver(adm1029_driver); |
454 | Common module stuff | ||
455 | */ | ||
456 | static int __init sensors_adm1029_init(void) | ||
457 | { | ||
458 | |||
459 | return i2c_add_driver(&adm1029_driver); | ||
460 | } | ||
461 | |||
462 | static void __exit sensors_adm1029_exit(void) | ||
463 | { | ||
464 | |||
465 | i2c_del_driver(&adm1029_driver); | ||
466 | } | ||
467 | 454 | ||
468 | MODULE_AUTHOR("Corentin LABBE <corentin.labbe@geomatys.fr>"); | 455 | MODULE_AUTHOR("Corentin LABBE <corentin.labbe@geomatys.fr>"); |
469 | MODULE_DESCRIPTION("adm1029 driver"); | 456 | MODULE_DESCRIPTION("adm1029 driver"); |
470 | MODULE_LICENSE("GPL v2"); | 457 | MODULE_LICENSE("GPL v2"); |
471 | |||
472 | module_init(sensors_adm1029_init); | ||
473 | module_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 | ||
1134 | static int __init sensors_adm1031_init(void) | 1134 | module_i2c_driver(adm1031_driver); |
1135 | { | ||
1136 | return i2c_add_driver(&adm1031_driver); | ||
1137 | } | ||
1138 | |||
1139 | static void __exit sensors_adm1031_exit(void) | ||
1140 | { | ||
1141 | i2c_del_driver(&adm1031_driver); | ||
1142 | } | ||
1143 | 1135 | ||
1144 | MODULE_AUTHOR("Alexandre d'Alton <alex@alexdalton.org>"); | 1136 | MODULE_AUTHOR("Alexandre d'Alton <alex@alexdalton.org>"); |
1145 | MODULE_DESCRIPTION("ADM1031/ADM1030 driver"); | 1137 | MODULE_DESCRIPTION("ADM1031/ADM1030 driver"); |
1146 | MODULE_LICENSE("GPL"); | 1138 | MODULE_LICENSE("GPL"); |
1147 | |||
1148 | module_init(sensors_adm1031_init); | ||
1149 | module_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 | ||
798 | static int __init sensors_adm9240_init(void) | 798 | module_i2c_driver(adm9240_driver); |
799 | { | ||
800 | return i2c_add_driver(&adm9240_driver); | ||
801 | } | ||
802 | |||
803 | static void __exit sensors_adm9240_exit(void) | ||
804 | { | ||
805 | i2c_del_driver(&adm9240_driver); | ||
806 | } | ||
807 | 799 | ||
808 | MODULE_AUTHOR("Michiel Rook <michiel@grendelproject.nl>, " | 800 | MODULE_AUTHOR("Michiel Rook <michiel@grendelproject.nl>, " |
809 | "Grant Coady <gcoady.lk@gmail.com> and others"); | 801 | "Grant Coady <gcoady.lk@gmail.com> and others"); |
810 | MODULE_DESCRIPTION("ADM9240/DS1780/LM81 driver"); | 802 | MODULE_DESCRIPTION("ADM9240/DS1780/LM81 driver"); |
811 | MODULE_LICENSE("GPL"); | 803 | MODULE_LICENSE("GPL"); |
812 | |||
813 | module_init(sensors_adm9240_init); | ||
814 | module_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 | ||
308 | static int __init sensors_ads1015_init(void) | 308 | module_i2c_driver(ads1015_driver); |
309 | { | ||
310 | return i2c_add_driver(&ads1015_driver); | ||
311 | } | ||
312 | |||
313 | static void __exit sensors_ads1015_exit(void) | ||
314 | { | ||
315 | i2c_del_driver(&ads1015_driver); | ||
316 | } | ||
317 | 309 | ||
318 | MODULE_AUTHOR("Dirk Eibach <eibach@gdsys.de>"); | 310 | MODULE_AUTHOR("Dirk Eibach <eibach@gdsys.de>"); |
319 | MODULE_DESCRIPTION("ADS1015 driver"); | 311 | MODULE_DESCRIPTION("ADS1015 driver"); |
320 | MODULE_LICENSE("GPL"); | 312 | MODULE_LICENSE("GPL"); |
321 | |||
322 | module_init(sensors_ads1015_init); | ||
323 | module_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 | ||
351 | static int __init sensors_adt7411_init(void) | 351 | module_i2c_driver(adt7411_driver); |
352 | { | ||
353 | return i2c_add_driver(&adt7411_driver); | ||
354 | } | ||
355 | module_init(sensors_adt7411_init) | ||
356 | |||
357 | static void __exit sensors_adt7411_exit(void) | ||
358 | { | ||
359 | i2c_del_driver(&adt7411_driver); | ||
360 | } | ||
361 | module_exit(sensors_adt7411_exit) | ||
362 | 352 | ||
363 | MODULE_AUTHOR("Sascha Hauer <s.hauer@pengutronix.de> and " | 353 | MODULE_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 | ||
1978 | static int __init adt7462_init(void) | 1978 | module_i2c_driver(adt7462_driver); |
1979 | { | ||
1980 | return i2c_add_driver(&adt7462_driver); | ||
1981 | } | ||
1982 | |||
1983 | static void __exit adt7462_exit(void) | ||
1984 | { | ||
1985 | i2c_del_driver(&adt7462_driver); | ||
1986 | } | ||
1987 | 1979 | ||
1988 | MODULE_AUTHOR("Darrick J. Wong <djwong@us.ibm.com>"); | 1980 | MODULE_AUTHOR("Darrick J. Wong <djwong@us.ibm.com>"); |
1989 | MODULE_DESCRIPTION("ADT7462 driver"); | 1981 | MODULE_DESCRIPTION("ADT7462 driver"); |
1990 | MODULE_LICENSE("GPL"); | 1982 | MODULE_LICENSE("GPL"); |
1991 | |||
1992 | module_init(adt7462_init); | ||
1993 | module_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 | ||
1320 | static int __init adt7470_init(void) | 1320 | module_i2c_driver(adt7470_driver); |
1321 | { | ||
1322 | return i2c_add_driver(&adt7470_driver); | ||
1323 | } | ||
1324 | |||
1325 | static void __exit adt7470_exit(void) | ||
1326 | { | ||
1327 | i2c_del_driver(&adt7470_driver); | ||
1328 | } | ||
1329 | 1321 | ||
1330 | MODULE_AUTHOR("Darrick J. Wong <djwong@us.ibm.com>"); | 1322 | MODULE_AUTHOR("Darrick J. Wong <djwong@us.ibm.com>"); |
1331 | MODULE_DESCRIPTION("ADT7470 driver"); | 1323 | MODULE_DESCRIPTION("ADT7470 driver"); |
1332 | MODULE_LICENSE("GPL"); | 1324 | MODULE_LICENSE("GPL"); |
1333 | |||
1334 | module_init(adt7470_init); | ||
1335 | module_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 | ||
1629 | static int __init sensors_adt7475_init(void) | 1629 | module_i2c_driver(adt7475_driver); |
1630 | { | ||
1631 | return i2c_add_driver(&adt7475_driver); | ||
1632 | } | ||
1633 | |||
1634 | static void __exit sensors_adt7475_exit(void) | ||
1635 | { | ||
1636 | i2c_del_driver(&adt7475_driver); | ||
1637 | } | ||
1638 | 1630 | ||
1639 | MODULE_AUTHOR("Advanced Micro Devices, Inc"); | 1631 | MODULE_AUTHOR("Advanced Micro Devices, Inc"); |
1640 | MODULE_DESCRIPTION("adt7475 driver"); | 1632 | MODULE_DESCRIPTION("adt7475 driver"); |
1641 | MODULE_LICENSE("GPL"); | 1633 | MODULE_LICENSE("GPL"); |
1642 | |||
1643 | module_init(sensors_adt7475_init); | ||
1644 | module_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 | 1098 | module_i2c_driver(amc6821_driver); | |
1099 | static int __init amc6821_init(void) | ||
1100 | { | ||
1101 | return i2c_add_driver(&amc6821_driver); | ||
1102 | } | ||
1103 | |||
1104 | static void __exit amc6821_exit(void) | ||
1105 | { | ||
1106 | i2c_del_driver(&amc6821_driver); | ||
1107 | } | ||
1108 | |||
1109 | module_init(amc6821_init); | ||
1110 | module_exit(amc6821_exit); | ||
1111 | |||
1112 | 1099 | ||
1113 | MODULE_LICENSE("GPL"); | 1100 | MODULE_LICENSE("GPL"); |
1114 | MODULE_AUTHOR("T. Mertelj <tomaz.mertelj@guest.arnes.si>"); | 1101 | MODULE_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 | ||
974 | static int __init asb100_init(void) | 974 | module_i2c_driver(asb100_driver); |
975 | { | ||
976 | return i2c_add_driver(&asb100_driver); | ||
977 | } | ||
978 | |||
979 | static void __exit asb100_exit(void) | ||
980 | { | ||
981 | i2c_del_driver(&asb100_driver); | ||
982 | } | ||
983 | 975 | ||
984 | MODULE_AUTHOR("Mark M. Hoffman <mhoffman@lightlink.com>"); | 976 | MODULE_AUTHOR("Mark M. Hoffman <mhoffman@lightlink.com>"); |
985 | MODULE_DESCRIPTION("ASB100 Bach driver"); | 977 | MODULE_DESCRIPTION("ASB100 Bach driver"); |
986 | MODULE_LICENSE("GPL"); | 978 | MODULE_LICENSE("GPL"); |
987 | |||
988 | module_init(asb100_init); | ||
989 | module_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 | ||
370 | static int __init atxp1_init(void) | 370 | module_i2c_driver(atxp1_driver); |
371 | { | ||
372 | return i2c_add_driver(&atxp1_driver); | ||
373 | }; | ||
374 | |||
375 | static void __exit atxp1_exit(void) | ||
376 | { | ||
377 | i2c_del_driver(&atxp1_driver); | ||
378 | }; | ||
379 | |||
380 | module_init(atxp1_init); | ||
381 | module_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 | ||
308 | static int __init ds1621_init(void) | 308 | module_i2c_driver(ds1621_driver); |
309 | { | ||
310 | return i2c_add_driver(&ds1621_driver); | ||
311 | } | ||
312 | |||
313 | static void __exit ds1621_exit(void) | ||
314 | { | ||
315 | i2c_del_driver(&ds1621_driver); | ||
316 | } | ||
317 | |||
318 | 309 | ||
319 | MODULE_AUTHOR("Christian W. Zuckschwerdt <zany@triq.net>"); | 310 | MODULE_AUTHOR("Christian W. Zuckschwerdt <zany@triq.net>"); |
320 | MODULE_DESCRIPTION("DS1621 driver"); | 311 | MODULE_DESCRIPTION("DS1621 driver"); |
321 | MODULE_LICENSE("GPL"); | 312 | MODULE_LICENSE("GPL"); |
322 | |||
323 | module_init(ds1621_init); | ||
324 | module_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 | ||
300 | static int __init ds620_init(void) | 300 | module_i2c_driver(ds620_driver); |
301 | { | ||
302 | return i2c_add_driver(&ds620_driver); | ||
303 | } | ||
304 | |||
305 | static void __exit ds620_exit(void) | ||
306 | { | ||
307 | i2c_del_driver(&ds620_driver); | ||
308 | } | ||
309 | 301 | ||
310 | MODULE_AUTHOR("Roland Stigge <stigge@antcom.de>"); | 302 | MODULE_AUTHOR("Roland Stigge <stigge@antcom.de>"); |
311 | MODULE_DESCRIPTION("DS620 driver"); | 303 | MODULE_DESCRIPTION("DS620 driver"); |
312 | MODULE_LICENSE("GPL"); | 304 | MODULE_LICENSE("GPL"); |
313 | |||
314 | module_init(ds620_init); | ||
315 | module_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 | ||
369 | static int __init sensor_emc1403_init(void) | 369 | module_i2c_driver(sensor_emc1403); |
370 | { | ||
371 | return i2c_add_driver(&sensor_emc1403); | ||
372 | } | ||
373 | |||
374 | static void __exit sensor_emc1403_exit(void) | ||
375 | { | ||
376 | i2c_del_driver(&sensor_emc1403); | ||
377 | } | ||
378 | |||
379 | module_init(sensor_emc1403_init); | ||
380 | module_exit(sensor_emc1403_exit); | ||
381 | 370 | ||
382 | MODULE_AUTHOR("Kalhan Trisal <kalhan.trisal@intel.com"); | 371 | MODULE_AUTHOR("Kalhan Trisal <kalhan.trisal@intel.com"); |
383 | MODULE_DESCRIPTION("emc1403 Thermal Driver"); | 372 | MODULE_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 | ||
725 | static int __init sensors_emc2103_init(void) | 725 | module_i2c_driver(emc2103_driver); |
726 | { | ||
727 | return i2c_add_driver(&emc2103_driver); | ||
728 | } | ||
729 | |||
730 | static void __exit sensors_emc2103_exit(void) | ||
731 | { | ||
732 | i2c_del_driver(&emc2103_driver); | ||
733 | } | ||
734 | 726 | ||
735 | MODULE_AUTHOR("Steve Glendinning <steve.glendinning@smsc.com>"); | 727 | MODULE_AUTHOR("Steve Glendinning <steve.glendinning@smsc.com>"); |
736 | MODULE_DESCRIPTION("SMSC EMC2103 hwmon driver"); | 728 | MODULE_DESCRIPTION("SMSC EMC2103 hwmon driver"); |
737 | MODULE_LICENSE("GPL"); | 729 | MODULE_LICENSE("GPL"); |
738 | |||
739 | module_init(sensors_emc2103_init); | ||
740 | module_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 | ||
555 | static int __init sensors_emc6w201_init(void) | 555 | module_i2c_driver(emc6w201_driver); |
556 | { | ||
557 | return i2c_add_driver(&emc6w201_driver); | ||
558 | } | ||
559 | module_init(sensors_emc6w201_init); | ||
560 | |||
561 | static void __exit sensors_emc6w201_exit(void) | ||
562 | { | ||
563 | i2c_del_driver(&emc6w201_driver); | ||
564 | } | ||
565 | module_exit(sensors_emc6w201_exit); | ||
566 | 556 | ||
567 | MODULE_AUTHOR("Jean Delvare <khali@linux-fr.org>"); | 557 | MODULE_AUTHOR("Jean Delvare <khali@linux-fr.org>"); |
568 | MODULE_DESCRIPTION("SMSC EMC6W201 hardware monitoring driver"); | 558 | MODULE_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 | ||
920 | static int __init sensors_f75375_init(void) | 920 | module_i2c_driver(f75375_driver); |
921 | { | ||
922 | return i2c_add_driver(&f75375_driver); | ||
923 | } | ||
924 | |||
925 | static void __exit sensors_f75375_exit(void) | ||
926 | { | ||
927 | i2c_del_driver(&f75375_driver); | ||
928 | } | ||
929 | 921 | ||
930 | MODULE_AUTHOR("Riku Voipio"); | 922 | MODULE_AUTHOR("Riku Voipio"); |
931 | MODULE_LICENSE("GPL"); | 923 | MODULE_LICENSE("GPL"); |
932 | MODULE_DESCRIPTION("F75373/F75375/F75387 hardware monitoring driver"); | 924 | MODULE_DESCRIPTION("F75373/F75375/F75387 hardware monitoring driver"); |
933 | |||
934 | module_init(sensors_f75375_init); | ||
935 | module_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 | ||
1317 | static int __init fschmd_init(void) | 1317 | module_i2c_driver(fschmd_driver); |
1318 | { | ||
1319 | return i2c_add_driver(&fschmd_driver); | ||
1320 | } | ||
1321 | |||
1322 | static void __exit fschmd_exit(void) | ||
1323 | { | ||
1324 | i2c_del_driver(&fschmd_driver); | ||
1325 | } | ||
1326 | 1318 | ||
1327 | MODULE_AUTHOR("Hans de Goede <hdegoede@redhat.com>"); | 1319 | MODULE_AUTHOR("Hans de Goede <hdegoede@redhat.com>"); |
1328 | MODULE_DESCRIPTION("FSC Poseidon, Hermes, Scylla, Heracles, Heimdall, Hades " | 1320 | MODULE_DESCRIPTION("FSC Poseidon, Hermes, Scylla, Heracles, Heimdall, Hades " |
1329 | "and Syleus driver"); | 1321 | "and Syleus driver"); |
1330 | MODULE_LICENSE("GPL"); | 1322 | MODULE_LICENSE("GPL"); |
1331 | |||
1332 | module_init(fschmd_init); | ||
1333 | module_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 */ | 253 | module_i2c_driver(g760a_driver); |
254 | |||
255 | static int __init g760a_init(void) | ||
256 | { | ||
257 | return i2c_add_driver(&g760a_driver); | ||
258 | } | ||
259 | |||
260 | static void __exit g760a_exit(void) | ||
261 | { | ||
262 | i2c_del_driver(&g760a_driver); | ||
263 | } | ||
264 | 254 | ||
265 | MODULE_AUTHOR("Herbert Valerio Riedel <hvr@gnu.org>"); | 255 | MODULE_AUTHOR("Herbert Valerio Riedel <hvr@gnu.org>"); |
266 | MODULE_DESCRIPTION("GMT G760A driver"); | 256 | MODULE_DESCRIPTION("GMT G760A driver"); |
267 | MODULE_LICENSE("GPL"); | 257 | MODULE_LICENSE("GPL"); |
268 | |||
269 | module_init(g760a_init); | ||
270 | module_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 | ||
679 | static int __init sensors_gl518sm_init(void) | 679 | module_i2c_driver(gl518_driver); |
680 | { | ||
681 | return i2c_add_driver(&gl518_driver); | ||
682 | } | ||
683 | |||
684 | static void __exit sensors_gl518sm_exit(void) | ||
685 | { | ||
686 | i2c_del_driver(&gl518_driver); | ||
687 | } | ||
688 | 680 | ||
689 | MODULE_AUTHOR("Frodo Looijaard <frodol@dds.nl>, " | 681 | MODULE_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>"); |
692 | MODULE_DESCRIPTION("GL518SM driver"); | 684 | MODULE_DESCRIPTION("GL518SM driver"); |
693 | MODULE_LICENSE("GPL"); | 685 | MODULE_LICENSE("GPL"); |
694 | |||
695 | module_init(sensors_gl518sm_init); | ||
696 | module_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 | 913 | module_i2c_driver(gl520_driver); | |
914 | static int __init sensors_gl520sm_init(void) | ||
915 | { | ||
916 | return i2c_add_driver(&gl520_driver); | ||
917 | } | ||
918 | |||
919 | static void __exit sensors_gl520sm_exit(void) | ||
920 | { | ||
921 | i2c_del_driver(&gl520_driver); | ||
922 | } | ||
923 | |||
924 | 914 | ||
925 | MODULE_AUTHOR("Frodo Looijaard <frodol@dds.nl>, " | 915 | MODULE_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>"); |
928 | MODULE_DESCRIPTION("GL520SM driver"); | 918 | MODULE_DESCRIPTION("GL520SM driver"); |
929 | MODULE_LICENSE("GPL"); | 919 | MODULE_LICENSE("GPL"); |
930 | |||
931 | module_init(sensors_gl520sm_init); | ||
932 | module_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 | ||
617 | static int __init sensors_jc42_init(void) | 617 | module_i2c_driver(jc42_driver); |
618 | { | ||
619 | return i2c_add_driver(&jc42_driver); | ||
620 | } | ||
621 | |||
622 | static void __exit sensors_jc42_exit(void) | ||
623 | { | ||
624 | i2c_del_driver(&jc42_driver); | ||
625 | } | ||
626 | 618 | ||
627 | MODULE_AUTHOR("Guenter Roeck <guenter.roeck@ericsson.com>"); | 619 | MODULE_AUTHOR("Guenter Roeck <guenter.roeck@ericsson.com>"); |
628 | MODULE_DESCRIPTION("JC42 driver"); | 620 | MODULE_DESCRIPTION("JC42 driver"); |
629 | MODULE_LICENSE("GPL"); | 621 | MODULE_LICENSE("GPL"); |
630 | |||
631 | module_init(sensors_jc42_init); | ||
632 | module_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 | ||
571 | static int __init pem_init(void) | 571 | module_i2c_driver(pem_driver); |
572 | { | ||
573 | return i2c_add_driver(&pem_driver); | ||
574 | } | ||
575 | |||
576 | static void __exit pem_exit(void) | ||
577 | { | ||
578 | i2c_del_driver(&pem_driver); | ||
579 | } | ||
580 | 572 | ||
581 | MODULE_AUTHOR("Guenter Roeck <guenter.roeck@ericsson.com>"); | 573 | MODULE_AUTHOR("Guenter Roeck <guenter.roeck@ericsson.com>"); |
582 | MODULE_DESCRIPTION("Lineage CPL PEM hardware monitoring driver"); | 574 | MODULE_DESCRIPTION("Lineage CPL PEM hardware monitoring driver"); |
583 | MODULE_LICENSE("GPL"); | 575 | MODULE_LICENSE("GPL"); |
584 | |||
585 | module_init(pem_init); | ||
586 | module_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 | ||
1122 | static int __init sensors_lm63_init(void) | 1122 | module_i2c_driver(lm63_driver); |
1123 | { | ||
1124 | return i2c_add_driver(&lm63_driver); | ||
1125 | } | ||
1126 | |||
1127 | static void __exit sensors_lm63_exit(void) | ||
1128 | { | ||
1129 | i2c_del_driver(&lm63_driver); | ||
1130 | } | ||
1131 | 1123 | ||
1132 | MODULE_AUTHOR("Jean Delvare <khali@linux-fr.org>"); | 1124 | MODULE_AUTHOR("Jean Delvare <khali@linux-fr.org>"); |
1133 | MODULE_DESCRIPTION("LM63 driver"); | 1125 | MODULE_DESCRIPTION("LM63 driver"); |
1134 | MODULE_LICENSE("GPL"); | 1126 | MODULE_LICENSE("GPL"); |
1135 | |||
1136 | module_init(sensors_lm63_init); | ||
1137 | module_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 */ | 197 | module_i2c_driver(lm73_driver); |
198 | |||
199 | static int __init sensors_lm73_init(void) | ||
200 | { | ||
201 | return i2c_add_driver(&lm73_driver); | ||
202 | } | ||
203 | |||
204 | static void __exit sensors_lm73_exit(void) | ||
205 | { | ||
206 | i2c_del_driver(&lm73_driver); | ||
207 | } | ||
208 | 198 | ||
209 | MODULE_AUTHOR("Guillaume Ligneul <guillaume.ligneul@gmail.com>"); | 199 | MODULE_AUTHOR("Guillaume Ligneul <guillaume.ligneul@gmail.com>"); |
210 | MODULE_DESCRIPTION("LM73 driver"); | 200 | MODULE_DESCRIPTION("LM73 driver"); |
211 | MODULE_LICENSE("GPL"); | 201 | MODULE_LICENSE("GPL"); |
212 | |||
213 | module_init(sensors_lm73_init); | ||
214 | module_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 | /*-----------------------------------------------------------------------*/ | 441 | module_i2c_driver(lm75_driver); |
442 | |||
443 | /* module glue */ | ||
444 | |||
445 | static int __init sensors_lm75_init(void) | ||
446 | { | ||
447 | return i2c_add_driver(&lm75_driver); | ||
448 | } | ||
449 | |||
450 | static void __exit sensors_lm75_exit(void) | ||
451 | { | ||
452 | i2c_del_driver(&lm75_driver); | ||
453 | } | ||
454 | 442 | ||
455 | MODULE_AUTHOR("Frodo Looijaard <frodol@dds.nl>"); | 443 | MODULE_AUTHOR("Frodo Looijaard <frodol@dds.nl>"); |
456 | MODULE_DESCRIPTION("LM75 driver"); | 444 | MODULE_DESCRIPTION("LM75 driver"); |
457 | MODULE_LICENSE("GPL"); | 445 | MODULE_LICENSE("GPL"); |
458 | |||
459 | module_init(sensors_lm75_init); | ||
460 | module_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 | ||
423 | static int __init sensors_lm77_init(void) | 423 | module_i2c_driver(lm77_driver); |
424 | { | ||
425 | return i2c_add_driver(&lm77_driver); | ||
426 | } | ||
427 | |||
428 | static void __exit sensors_lm77_exit(void) | ||
429 | { | ||
430 | i2c_del_driver(&lm77_driver); | ||
431 | } | ||
432 | 424 | ||
433 | MODULE_AUTHOR("Andras BALI <drewie@freemail.hu>"); | 425 | MODULE_AUTHOR("Andras BALI <drewie@freemail.hu>"); |
434 | MODULE_DESCRIPTION("LM77 driver"); | 426 | MODULE_DESCRIPTION("LM77 driver"); |
435 | MODULE_LICENSE("GPL"); | 427 | MODULE_LICENSE("GPL"); |
436 | |||
437 | module_init(sensors_lm77_init); | ||
438 | module_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 | ||
700 | static int __init sensors_lm80_init(void) | 700 | module_i2c_driver(lm80_driver); |
701 | { | ||
702 | return i2c_add_driver(&lm80_driver); | ||
703 | } | ||
704 | |||
705 | static void __exit sensors_lm80_exit(void) | ||
706 | { | ||
707 | i2c_del_driver(&lm80_driver); | ||
708 | } | ||
709 | 701 | ||
710 | MODULE_AUTHOR("Frodo Looijaard <frodol@dds.nl> and " | 702 | MODULE_AUTHOR("Frodo Looijaard <frodol@dds.nl> and " |
711 | "Philip Edelbrock <phil@netroedge.com>"); | 703 | "Philip Edelbrock <phil@netroedge.com>"); |
712 | MODULE_DESCRIPTION("LM80 driver"); | 704 | MODULE_DESCRIPTION("LM80 driver"); |
713 | MODULE_LICENSE("GPL"); | 705 | MODULE_LICENSE("GPL"); |
714 | |||
715 | module_init(sensors_lm80_init); | ||
716 | module_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 | ||
433 | static int __init sensors_lm83_init(void) | 433 | module_i2c_driver(lm83_driver); |
434 | { | ||
435 | return i2c_add_driver(&lm83_driver); | ||
436 | } | ||
437 | |||
438 | static void __exit sensors_lm83_exit(void) | ||
439 | { | ||
440 | i2c_del_driver(&lm83_driver); | ||
441 | } | ||
442 | 434 | ||
443 | MODULE_AUTHOR("Jean Delvare <khali@linux-fr.org>"); | 435 | MODULE_AUTHOR("Jean Delvare <khali@linux-fr.org>"); |
444 | MODULE_DESCRIPTION("LM83 driver"); | 436 | MODULE_DESCRIPTION("LM83 driver"); |
445 | MODULE_LICENSE("GPL"); | 437 | MODULE_LICENSE("GPL"); |
446 | |||
447 | module_init(sensors_lm83_init); | ||
448 | module_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 | 1614 | module_i2c_driver(lm85_driver); | |
1615 | static int __init sm_lm85_init(void) | ||
1616 | { | ||
1617 | return i2c_add_driver(&lm85_driver); | ||
1618 | } | ||
1619 | |||
1620 | static void __exit sm_lm85_exit(void) | ||
1621 | { | ||
1622 | i2c_del_driver(&lm85_driver); | ||
1623 | } | ||
1624 | 1615 | ||
1625 | MODULE_LICENSE("GPL"); | 1616 | MODULE_LICENSE("GPL"); |
1626 | MODULE_AUTHOR("Philip Pokorny <ppokorny@penguincomputing.com>, " | 1617 | MODULE_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>"); |
1629 | MODULE_DESCRIPTION("LM85-B, LM85-C driver"); | 1620 | MODULE_DESCRIPTION("LM85-B, LM85-C driver"); |
1630 | |||
1631 | module_init(sm_lm85_init); | ||
1632 | module_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 | ||
966 | static int __init sensors_lm87_init(void) | 966 | module_i2c_driver(lm87_driver); |
967 | { | ||
968 | return i2c_add_driver(&lm87_driver); | ||
969 | } | ||
970 | |||
971 | static void __exit sensors_lm87_exit(void) | ||
972 | { | ||
973 | i2c_del_driver(&lm87_driver); | ||
974 | } | ||
975 | 967 | ||
976 | MODULE_AUTHOR("Jean Delvare <khali@linux-fr.org> and others"); | 968 | MODULE_AUTHOR("Jean Delvare <khali@linux-fr.org> and others"); |
977 | MODULE_DESCRIPTION("LM87 driver"); | 969 | MODULE_DESCRIPTION("LM87 driver"); |
978 | MODULE_LICENSE("GPL"); | 970 | MODULE_LICENSE("GPL"); |
979 | |||
980 | module_init(sensors_lm87_init); | ||
981 | module_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 | ||
1517 | static int __init sensors_lm90_init(void) | 1517 | module_i2c_driver(lm90_driver); |
1518 | { | ||
1519 | return i2c_add_driver(&lm90_driver); | ||
1520 | } | ||
1521 | |||
1522 | static void __exit sensors_lm90_exit(void) | ||
1523 | { | ||
1524 | i2c_del_driver(&lm90_driver); | ||
1525 | } | ||
1526 | 1518 | ||
1527 | MODULE_AUTHOR("Jean Delvare <khali@linux-fr.org>"); | 1519 | MODULE_AUTHOR("Jean Delvare <khali@linux-fr.org>"); |
1528 | MODULE_DESCRIPTION("LM90/ADM1032 driver"); | 1520 | MODULE_DESCRIPTION("LM90/ADM1032 driver"); |
1529 | MODULE_LICENSE("GPL"); | 1521 | MODULE_LICENSE("GPL"); |
1530 | |||
1531 | module_init(sensors_lm90_init); | ||
1532 | module_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 | ||
419 | static int __init sensors_lm92_init(void) | 419 | module_i2c_driver(lm92_driver); |
420 | { | ||
421 | return i2c_add_driver(&lm92_driver); | ||
422 | } | ||
423 | |||
424 | static void __exit sensors_lm92_exit(void) | ||
425 | { | ||
426 | i2c_del_driver(&lm92_driver); | ||
427 | } | ||
428 | 420 | ||
429 | MODULE_AUTHOR("Jean Delvare <khali@linux-fr.org>"); | 421 | MODULE_AUTHOR("Jean Delvare <khali@linux-fr.org>"); |
430 | MODULE_DESCRIPTION("LM92/MAX6635 driver"); | 422 | MODULE_DESCRIPTION("LM92/MAX6635 driver"); |
431 | MODULE_LICENSE("GPL"); | 423 | MODULE_LICENSE("GPL"); |
432 | |||
433 | module_init(sensors_lm92_init); | ||
434 | module_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 | ||
2638 | static int __init lm93_init(void) | 2638 | module_i2c_driver(lm93_driver); |
2639 | { | ||
2640 | return i2c_add_driver(&lm93_driver); | ||
2641 | } | ||
2642 | |||
2643 | static void __exit lm93_exit(void) | ||
2644 | { | ||
2645 | i2c_del_driver(&lm93_driver); | ||
2646 | } | ||
2647 | 2639 | ||
2648 | MODULE_AUTHOR("Mark M. Hoffman <mhoffman@lightlink.com>, " | 2640 | MODULE_AUTHOR("Mark M. Hoffman <mhoffman@lightlink.com>, " |
2649 | "Hans J. Koch <hjk@hansjkoch.de>"); | 2641 | "Hans J. Koch <hjk@hansjkoch.de>"); |
2650 | MODULE_DESCRIPTION("LM93 driver"); | 2642 | MODULE_DESCRIPTION("LM93 driver"); |
2651 | MODULE_LICENSE("GPL"); | 2643 | MODULE_LICENSE("GPL"); |
2652 | |||
2653 | module_init(lm93_init); | ||
2654 | module_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 | ||
458 | static int __init sensors_lm95241_init(void) | 458 | module_i2c_driver(lm95241_driver); |
459 | { | ||
460 | return i2c_add_driver(&lm95241_driver); | ||
461 | } | ||
462 | |||
463 | static void __exit sensors_lm95241_exit(void) | ||
464 | { | ||
465 | i2c_del_driver(&lm95241_driver); | ||
466 | } | ||
467 | 459 | ||
468 | MODULE_AUTHOR("Davide Rizzo <elpa.rizzo@gmail.com>"); | 460 | MODULE_AUTHOR("Davide Rizzo <elpa.rizzo@gmail.com>"); |
469 | MODULE_DESCRIPTION("LM95241 sensor driver"); | 461 | MODULE_DESCRIPTION("LM95241 sensor driver"); |
470 | MODULE_LICENSE("GPL"); | 462 | MODULE_LICENSE("GPL"); |
471 | |||
472 | module_init(sensors_lm95241_init); | ||
473 | module_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 | ||
528 | static int __init sensors_lm95245_init(void) | 528 | module_i2c_driver(lm95245_driver); |
529 | { | ||
530 | return i2c_add_driver(&lm95245_driver); | ||
531 | } | ||
532 | |||
533 | static void __exit sensors_lm95245_exit(void) | ||
534 | { | ||
535 | i2c_del_driver(&lm95245_driver); | ||
536 | } | ||
537 | 529 | ||
538 | MODULE_AUTHOR("Alexander Stein <alexander.stein@systec-electronic.com>"); | 530 | MODULE_AUTHOR("Alexander Stein <alexander.stein@systec-electronic.com>"); |
539 | MODULE_DESCRIPTION("LM95245 sensor driver"); | 531 | MODULE_DESCRIPTION("LM95245 sensor driver"); |
540 | MODULE_LICENSE("GPL"); | 532 | MODULE_LICENSE("GPL"); |
541 | |||
542 | module_init(sensors_lm95245_init); | ||
543 | module_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 | ||
241 | static int __init ltc4151_init(void) | 241 | module_i2c_driver(ltc4151_driver); |
242 | { | ||
243 | return i2c_add_driver(<c4151_driver); | ||
244 | } | ||
245 | |||
246 | static void __exit ltc4151_exit(void) | ||
247 | { | ||
248 | i2c_del_driver(<c4151_driver); | ||
249 | } | ||
250 | 242 | ||
251 | MODULE_AUTHOR("Per Dalen <per.dalen@appeartv.com>"); | 243 | MODULE_AUTHOR("Per Dalen <per.dalen@appeartv.com>"); |
252 | MODULE_DESCRIPTION("LTC4151 driver"); | 244 | MODULE_DESCRIPTION("LTC4151 driver"); |
253 | MODULE_LICENSE("GPL"); | 245 | MODULE_LICENSE("GPL"); |
254 | |||
255 | module_init(ltc4151_init); | ||
256 | module_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 | ||
312 | static int __init ltc4215_init(void) | 312 | module_i2c_driver(ltc4215_driver); |
313 | { | ||
314 | return i2c_add_driver(<c4215_driver); | ||
315 | } | ||
316 | |||
317 | static void __exit ltc4215_exit(void) | ||
318 | { | ||
319 | i2c_del_driver(<c4215_driver); | ||
320 | } | ||
321 | 313 | ||
322 | MODULE_AUTHOR("Ira W. Snyder <iws@ovro.caltech.edu>"); | 314 | MODULE_AUTHOR("Ira W. Snyder <iws@ovro.caltech.edu>"); |
323 | MODULE_DESCRIPTION("LTC4215 driver"); | 315 | MODULE_DESCRIPTION("LTC4215 driver"); |
324 | MODULE_LICENSE("GPL"); | 316 | MODULE_LICENSE("GPL"); |
325 | |||
326 | module_init(ltc4215_init); | ||
327 | module_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 | ||
581 | static int __init ltc4245_init(void) | 581 | module_i2c_driver(ltc4245_driver); |
582 | { | ||
583 | return i2c_add_driver(<c4245_driver); | ||
584 | } | ||
585 | |||
586 | static void __exit ltc4245_exit(void) | ||
587 | { | ||
588 | i2c_del_driver(<c4245_driver); | ||
589 | } | ||
590 | 582 | ||
591 | MODULE_AUTHOR("Ira W. Snyder <iws@ovro.caltech.edu>"); | 583 | MODULE_AUTHOR("Ira W. Snyder <iws@ovro.caltech.edu>"); |
592 | MODULE_DESCRIPTION("LTC4245 driver"); | 584 | MODULE_DESCRIPTION("LTC4245 driver"); |
593 | MODULE_LICENSE("GPL"); | 585 | MODULE_LICENSE("GPL"); |
594 | |||
595 | module_init(ltc4245_init); | ||
596 | module_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 | ||
300 | static int __init ltc4261_init(void) | 300 | module_i2c_driver(ltc4261_driver); |
301 | { | ||
302 | return i2c_add_driver(<c4261_driver); | ||
303 | } | ||
304 | |||
305 | static void __exit ltc4261_exit(void) | ||
306 | { | ||
307 | i2c_del_driver(<c4261_driver); | ||
308 | } | ||
309 | 301 | ||
310 | MODULE_AUTHOR("Guenter Roeck <guenter.roeck@ericsson.com>"); | 302 | MODULE_AUTHOR("Guenter Roeck <guenter.roeck@ericsson.com>"); |
311 | MODULE_DESCRIPTION("LTC4261 driver"); | 303 | MODULE_DESCRIPTION("LTC4261 driver"); |
312 | MODULE_LICENSE("GPL"); | 304 | MODULE_LICENSE("GPL"); |
313 | |||
314 | module_init(ltc4261_init); | ||
315 | module_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 | ||
702 | static int __init max16065_init(void) | 702 | module_i2c_driver(max16065_driver); |
703 | { | ||
704 | return i2c_add_driver(&max16065_driver); | ||
705 | } | ||
706 | |||
707 | static void __exit max16065_exit(void) | ||
708 | { | ||
709 | i2c_del_driver(&max16065_driver); | ||
710 | } | ||
711 | 703 | ||
712 | MODULE_AUTHOR("Guenter Roeck <guenter.roeck@ericsson.com>"); | 704 | MODULE_AUTHOR("Guenter Roeck <guenter.roeck@ericsson.com>"); |
713 | MODULE_DESCRIPTION("MAX16065 driver"); | 705 | MODULE_DESCRIPTION("MAX16065 driver"); |
714 | MODULE_LICENSE("GPL"); | 706 | MODULE_LICENSE("GPL"); |
715 | |||
716 | module_init(max16065_init); | ||
717 | module_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 | ||
356 | static int __init sensors_max1619_init(void) | 356 | module_i2c_driver(max1619_driver); |
357 | { | ||
358 | return i2c_add_driver(&max1619_driver); | ||
359 | } | ||
360 | |||
361 | static void __exit sensors_max1619_exit(void) | ||
362 | { | ||
363 | i2c_del_driver(&max1619_driver); | ||
364 | } | ||
365 | 357 | ||
366 | MODULE_AUTHOR("Alexey Fisher <fishor@mail.ru> and " | 358 | MODULE_AUTHOR("Alexey Fisher <fishor@mail.ru> and " |
367 | "Jean Delvare <khali@linux-fr.org>"); | 359 | "Jean Delvare <khali@linux-fr.org>"); |
368 | MODULE_DESCRIPTION("MAX1619 sensor driver"); | 360 | MODULE_DESCRIPTION("MAX1619 sensor driver"); |
369 | MODULE_LICENSE("GPL"); | 361 | MODULE_LICENSE("GPL"); |
370 | |||
371 | module_init(sensors_max1619_init); | ||
372 | module_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 | ||
487 | static int __init sensors_max1668_init(void) | 487 | module_i2c_driver(max1668_driver); |
488 | { | ||
489 | return i2c_add_driver(&max1668_driver); | ||
490 | } | ||
491 | |||
492 | static void __exit sensors_max1668_exit(void) | ||
493 | { | ||
494 | i2c_del_driver(&max1668_driver); | ||
495 | } | ||
496 | 488 | ||
497 | MODULE_AUTHOR("David George <david.george@ska.ac.za>"); | 489 | MODULE_AUTHOR("David George <david.george@ska.ac.za>"); |
498 | MODULE_DESCRIPTION("MAX1668 remote temperature sensor driver"); | 490 | MODULE_DESCRIPTION("MAX1668 remote temperature sensor driver"); |
499 | MODULE_LICENSE("GPL"); | 491 | MODULE_LICENSE("GPL"); |
500 | |||
501 | module_init(sensors_max1668_init) | ||
502 | module_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 | ||
640 | static int __init max6639_init(void) | 640 | module_i2c_driver(max6639_driver); |
641 | { | ||
642 | return i2c_add_driver(&max6639_driver); | ||
643 | } | ||
644 | |||
645 | static void __exit max6639_exit(void) | ||
646 | { | ||
647 | i2c_del_driver(&max6639_driver); | ||
648 | } | ||
649 | 641 | ||
650 | MODULE_AUTHOR("Roland Stigge <stigge@antcom.de>"); | 642 | MODULE_AUTHOR("Roland Stigge <stigge@antcom.de>"); |
651 | MODULE_DESCRIPTION("max6639 driver"); | 643 | MODULE_DESCRIPTION("max6639 driver"); |
652 | MODULE_LICENSE("GPL"); | 644 | MODULE_LICENSE("GPL"); |
653 | |||
654 | module_init(max6639_init); | ||
655 | module_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 | ||
355 | static int __init max6642_init(void) | 355 | module_i2c_driver(max6642_driver); |
356 | { | ||
357 | return i2c_add_driver(&max6642_driver); | ||
358 | } | ||
359 | |||
360 | static void __exit max6642_exit(void) | ||
361 | { | ||
362 | i2c_del_driver(&max6642_driver); | ||
363 | } | ||
364 | 356 | ||
365 | MODULE_AUTHOR("Per Dalen <per.dalen@appeartv.com>"); | 357 | MODULE_AUTHOR("Per Dalen <per.dalen@appeartv.com>"); |
366 | MODULE_DESCRIPTION("MAX6642 sensor driver"); | 358 | MODULE_DESCRIPTION("MAX6642 sensor driver"); |
367 | MODULE_LICENSE("GPL"); | 359 | MODULE_LICENSE("GPL"); |
368 | |||
369 | module_init(max6642_init); | ||
370 | module_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 | ||
734 | static int __init sensors_max6650_init(void) | 734 | module_i2c_driver(max6650_driver); |
735 | { | ||
736 | return i2c_add_driver(&max6650_driver); | ||
737 | } | ||
738 | |||
739 | static void __exit sensors_max6650_exit(void) | ||
740 | { | ||
741 | i2c_del_driver(&max6650_driver); | ||
742 | } | ||
743 | 735 | ||
744 | MODULE_AUTHOR("Hans J. Koch"); | 736 | MODULE_AUTHOR("Hans J. Koch"); |
745 | MODULE_DESCRIPTION("MAX6650 sensor driver"); | 737 | MODULE_DESCRIPTION("MAX6650 sensor driver"); |
746 | MODULE_LICENSE("GPL"); | 738 | MODULE_LICENSE("GPL"); |
747 | |||
748 | module_init(sensors_max6650_init); | ||
749 | module_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 | ||
329 | static int __init adm1275_init(void) | 329 | module_i2c_driver(adm1275_driver); |
330 | { | ||
331 | return i2c_add_driver(&adm1275_driver); | ||
332 | } | ||
333 | |||
334 | static void __exit adm1275_exit(void) | ||
335 | { | ||
336 | i2c_del_driver(&adm1275_driver); | ||
337 | } | ||
338 | 330 | ||
339 | MODULE_AUTHOR("Guenter Roeck"); | 331 | MODULE_AUTHOR("Guenter Roeck"); |
340 | MODULE_DESCRIPTION("PMBus driver for Analog Devices ADM1275 and compatibles"); | 332 | MODULE_DESCRIPTION("PMBus driver for Analog Devices ADM1275 and compatibles"); |
341 | MODULE_LICENSE("GPL"); | 333 | MODULE_LICENSE("GPL"); |
342 | module_init(adm1275_init); | ||
343 | module_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 | ||
337 | static int __init lm25066_init(void) | 337 | module_i2c_driver(lm25066_driver); |
338 | { | ||
339 | return i2c_add_driver(&lm25066_driver); | ||
340 | } | ||
341 | |||
342 | static void __exit lm25066_exit(void) | ||
343 | { | ||
344 | i2c_del_driver(&lm25066_driver); | ||
345 | } | ||
346 | 338 | ||
347 | MODULE_AUTHOR("Guenter Roeck"); | 339 | MODULE_AUTHOR("Guenter Roeck"); |
348 | MODULE_DESCRIPTION("PMBus driver for LM25066/LM5064/LM5066"); | 340 | MODULE_DESCRIPTION("PMBus driver for LM25066/LM5064/LM5066"); |
349 | MODULE_LICENSE("GPL"); | 341 | MODULE_LICENSE("GPL"); |
350 | module_init(lm25066_init); | ||
351 | module_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 | ||
394 | static int __init ltc2978_init(void) | 394 | module_i2c_driver(ltc2978_driver); |
395 | { | ||
396 | return i2c_add_driver(<c2978_driver); | ||
397 | } | ||
398 | |||
399 | static void __exit ltc2978_exit(void) | ||
400 | { | ||
401 | i2c_del_driver(<c2978_driver); | ||
402 | } | ||
403 | 395 | ||
404 | MODULE_AUTHOR("Guenter Roeck"); | 396 | MODULE_AUTHOR("Guenter Roeck"); |
405 | MODULE_DESCRIPTION("PMBus driver for LTC2978 and LTC3880"); | 397 | MODULE_DESCRIPTION("PMBus driver for LTC2978 and LTC3880"); |
406 | MODULE_LICENSE("GPL"); | 398 | MODULE_LICENSE("GPL"); |
407 | module_init(ltc2978_init); | ||
408 | module_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 | ||
129 | static int __init max16064_init(void) | 129 | module_i2c_driver(max16064_driver); |
130 | { | ||
131 | return i2c_add_driver(&max16064_driver); | ||
132 | } | ||
133 | |||
134 | static void __exit max16064_exit(void) | ||
135 | { | ||
136 | i2c_del_driver(&max16064_driver); | ||
137 | } | ||
138 | 130 | ||
139 | MODULE_AUTHOR("Guenter Roeck"); | 131 | MODULE_AUTHOR("Guenter Roeck"); |
140 | MODULE_DESCRIPTION("PMBus driver for Maxim MAX16064"); | 132 | MODULE_DESCRIPTION("PMBus driver for Maxim MAX16064"); |
141 | MODULE_LICENSE("GPL"); | 133 | MODULE_LICENSE("GPL"); |
142 | module_init(max16064_init); | ||
143 | module_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 | ||
251 | static int __init max34440_init(void) | 251 | module_i2c_driver(max34440_driver); |
252 | { | ||
253 | return i2c_add_driver(&max34440_driver); | ||
254 | } | ||
255 | |||
256 | static void __exit max34440_exit(void) | ||
257 | { | ||
258 | i2c_del_driver(&max34440_driver); | ||
259 | } | ||
260 | 252 | ||
261 | MODULE_AUTHOR("Guenter Roeck"); | 253 | MODULE_AUTHOR("Guenter Roeck"); |
262 | MODULE_DESCRIPTION("PMBus driver for Maxim MAX34440/MAX34441"); | 254 | MODULE_DESCRIPTION("PMBus driver for Maxim MAX34440/MAX34441"); |
263 | MODULE_LICENSE("GPL"); | 255 | MODULE_LICENSE("GPL"); |
264 | module_init(max34440_init); | ||
265 | module_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 | ||
206 | static int __init max8688_init(void) | 206 | module_i2c_driver(max8688_driver); |
207 | { | ||
208 | return i2c_add_driver(&max8688_driver); | ||
209 | } | ||
210 | |||
211 | static void __exit max8688_exit(void) | ||
212 | { | ||
213 | i2c_del_driver(&max8688_driver); | ||
214 | } | ||
215 | 207 | ||
216 | MODULE_AUTHOR("Guenter Roeck"); | 208 | MODULE_AUTHOR("Guenter Roeck"); |
217 | MODULE_DESCRIPTION("PMBus driver for Maxim MAX8688"); | 209 | MODULE_DESCRIPTION("PMBus driver for Maxim MAX8688"); |
218 | MODULE_LICENSE("GPL"); | 210 | MODULE_LICENSE("GPL"); |
219 | module_init(max8688_init); | ||
220 | module_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 | ||
227 | static int __init pmbus_init(void) | 227 | module_i2c_driver(pmbus_driver); |
228 | { | ||
229 | return i2c_add_driver(&pmbus_driver); | ||
230 | } | ||
231 | |||
232 | static void __exit pmbus_exit(void) | ||
233 | { | ||
234 | i2c_del_driver(&pmbus_driver); | ||
235 | } | ||
236 | 228 | ||
237 | MODULE_AUTHOR("Guenter Roeck"); | 229 | MODULE_AUTHOR("Guenter Roeck"); |
238 | MODULE_DESCRIPTION("Generic PMBus driver"); | 230 | MODULE_DESCRIPTION("Generic PMBus driver"); |
239 | MODULE_LICENSE("GPL"); | 231 | MODULE_LICENSE("GPL"); |
240 | module_init(pmbus_init); | ||
241 | module_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 | ||
261 | static int __init ucd9000_init(void) | 261 | module_i2c_driver(ucd9000_driver); |
262 | { | ||
263 | return i2c_add_driver(&ucd9000_driver); | ||
264 | } | ||
265 | |||
266 | static void __exit ucd9000_exit(void) | ||
267 | { | ||
268 | i2c_del_driver(&ucd9000_driver); | ||
269 | } | ||
270 | 262 | ||
271 | MODULE_AUTHOR("Guenter Roeck"); | 263 | MODULE_AUTHOR("Guenter Roeck"); |
272 | MODULE_DESCRIPTION("PMBus driver for TI UCD90xxx"); | 264 | MODULE_DESCRIPTION("PMBus driver for TI UCD90xxx"); |
273 | MODULE_LICENSE("GPL"); | 265 | MODULE_LICENSE("GPL"); |
274 | module_init(ucd9000_init); | ||
275 | module_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 | ||
193 | static int __init ucd9200_init(void) | 193 | module_i2c_driver(ucd9200_driver); |
194 | { | ||
195 | return i2c_add_driver(&ucd9200_driver); | ||
196 | } | ||
197 | |||
198 | static void __exit ucd9200_exit(void) | ||
199 | { | ||
200 | i2c_del_driver(&ucd9200_driver); | ||
201 | } | ||
202 | 194 | ||
203 | MODULE_AUTHOR("Guenter Roeck"); | 195 | MODULE_AUTHOR("Guenter Roeck"); |
204 | MODULE_DESCRIPTION("PMBus driver for TI UCD922x, UCD924x"); | 196 | MODULE_DESCRIPTION("PMBus driver for TI UCD922x, UCD924x"); |
205 | MODULE_LICENSE("GPL"); | 197 | MODULE_LICENSE("GPL"); |
206 | module_init(ucd9200_init); | ||
207 | module_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 | ||
267 | static int __init zl6100_init(void) | 267 | module_i2c_driver(zl6100_driver); |
268 | { | ||
269 | return i2c_add_driver(&zl6100_driver); | ||
270 | } | ||
271 | |||
272 | static void __exit zl6100_exit(void) | ||
273 | { | ||
274 | i2c_del_driver(&zl6100_driver); | ||
275 | } | ||
276 | 268 | ||
277 | MODULE_AUTHOR("Guenter Roeck"); | 269 | MODULE_AUTHOR("Guenter Roeck"); |
278 | MODULE_DESCRIPTION("PMBus driver for ZL6100 and compatibles"); | 270 | MODULE_DESCRIPTION("PMBus driver for ZL6100 and compatibles"); |
279 | MODULE_LICENSE("GPL"); | 271 | MODULE_LICENSE("GPL"); |
280 | module_init(zl6100_init); | ||
281 | module_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 | /** | 264 | module_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 | */ | ||
270 | static int __init sht21_init(void) | ||
271 | { | ||
272 | return i2c_add_driver(&sht21_driver); | ||
273 | } | ||
274 | module_init(sht21_init); | ||
275 | |||
276 | /** | ||
277 | * sht21_init() - clean up driver | ||
278 | * | ||
279 | * Called when module is removed. | ||
280 | */ | ||
281 | static void __exit sht21_exit(void) | ||
282 | { | ||
283 | i2c_del_driver(&sht21_driver); | ||
284 | } | ||
285 | module_exit(sht21_exit); | ||
286 | 265 | ||
287 | MODULE_AUTHOR("Urs Fleisch <urs.fleisch@sensirion.com>"); | 266 | MODULE_AUTHOR("Urs Fleisch <urs.fleisch@sensirion.com>"); |
288 | MODULE_DESCRIPTION("Sensirion SHT21 humidity and temperature sensor driver"); | 267 | MODULE_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 | ||
721 | static int __init smm665_init(void) | 721 | module_i2c_driver(smm665_driver); |
722 | { | ||
723 | return i2c_add_driver(&smm665_driver); | ||
724 | } | ||
725 | |||
726 | static void __exit smm665_exit(void) | ||
727 | { | ||
728 | i2c_del_driver(&smm665_driver); | ||
729 | } | ||
730 | 722 | ||
731 | MODULE_AUTHOR("Guenter Roeck"); | 723 | MODULE_AUTHOR("Guenter Roeck"); |
732 | MODULE_DESCRIPTION("SMM665 driver"); | 724 | MODULE_DESCRIPTION("SMM665 driver"); |
733 | MODULE_LICENSE("GPL"); | 725 | MODULE_LICENSE("GPL"); |
734 | |||
735 | module_init(smm665_init); | ||
736 | module_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 | ||
638 | static int __init smsc47m192_init(void) | 638 | module_i2c_driver(smsc47m192_driver); |
639 | { | ||
640 | return i2c_add_driver(&smsc47m192_driver); | ||
641 | } | ||
642 | |||
643 | static void __exit smsc47m192_exit(void) | ||
644 | { | ||
645 | i2c_del_driver(&smsc47m192_driver); | ||
646 | } | ||
647 | 639 | ||
648 | MODULE_AUTHOR("Hartmut Rick <linux@rick.claranet.de>"); | 640 | MODULE_AUTHOR("Hartmut Rick <linux@rick.claranet.de>"); |
649 | MODULE_DESCRIPTION("SMSC47M192 driver"); | 641 | MODULE_DESCRIPTION("SMSC47M192 driver"); |
650 | MODULE_LICENSE("GPL"); | 642 | MODULE_LICENSE("GPL"); |
651 | |||
652 | module_init(smsc47m192_init); | ||
653 | module_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 | ||
468 | static int __init sm_thmc50_init(void) | 468 | module_i2c_driver(thmc50_driver); |
469 | { | ||
470 | return i2c_add_driver(&thmc50_driver); | ||
471 | } | ||
472 | |||
473 | static void __exit sm_thmc50_exit(void) | ||
474 | { | ||
475 | i2c_del_driver(&thmc50_driver); | ||
476 | } | ||
477 | 469 | ||
478 | MODULE_AUTHOR("Krzysztof Helt <krzysztof.h1@wp.pl>"); | 470 | MODULE_AUTHOR("Krzysztof Helt <krzysztof.h1@wp.pl>"); |
479 | MODULE_DESCRIPTION("THMC50 driver"); | 471 | MODULE_DESCRIPTION("THMC50 driver"); |
480 | |||
481 | module_init(sm_thmc50_init); | ||
482 | module_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 | ||
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"); |
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 | ||
665 | static int __init tmp401_init(void) | 665 | module_i2c_driver(tmp401_driver); |
666 | { | ||
667 | return i2c_add_driver(&tmp401_driver); | ||
668 | } | ||
669 | |||
670 | static void __exit tmp401_exit(void) | ||
671 | { | ||
672 | i2c_del_driver(&tmp401_driver); | ||
673 | } | ||
674 | 666 | ||
675 | MODULE_AUTHOR("Hans de Goede <hdegoede@redhat.com>"); | 667 | MODULE_AUTHOR("Hans de Goede <hdegoede@redhat.com>"); |
676 | MODULE_DESCRIPTION("Texas Instruments TMP401 temperature sensor driver"); | 668 | MODULE_DESCRIPTION("Texas Instruments TMP401 temperature sensor driver"); |
677 | MODULE_LICENSE("GPL"); | 669 | MODULE_LICENSE("GPL"); |
678 | |||
679 | module_init(tmp401_init); | ||
680 | module_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 | ||
327 | static int __init tmp421_init(void) | 327 | module_i2c_driver(tmp421_driver); |
328 | { | ||
329 | return i2c_add_driver(&tmp421_driver); | ||
330 | } | ||
331 | |||
332 | static void __exit tmp421_exit(void) | ||
333 | { | ||
334 | i2c_del_driver(&tmp421_driver); | ||
335 | } | ||
336 | 328 | ||
337 | MODULE_AUTHOR("Andre Prendel <andre.prendel@gmx.de>"); | 329 | MODULE_AUTHOR("Andre Prendel <andre.prendel@gmx.de>"); |
338 | MODULE_DESCRIPTION("Texas Instruments TMP421/422/423 temperature sensor" | 330 | MODULE_DESCRIPTION("Texas Instruments TMP421/422/423 temperature sensor" |
339 | " driver"); | 331 | " driver"); |
340 | MODULE_LICENSE("GPL"); | 332 | MODULE_LICENSE("GPL"); |
341 | |||
342 | module_init(tmp421_init); | ||
343 | module_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 | ||
1628 | static int __init sensors_w83791d_init(void) | 1628 | module_i2c_driver(w83791d_driver); |
1629 | { | ||
1630 | return i2c_add_driver(&w83791d_driver); | ||
1631 | } | ||
1632 | |||
1633 | static void __exit sensors_w83791d_exit(void) | ||
1634 | { | ||
1635 | i2c_del_driver(&w83791d_driver); | ||
1636 | } | ||
1637 | 1629 | ||
1638 | MODULE_AUTHOR("Charles Spirakis <bezaur@gmail.com>"); | 1630 | MODULE_AUTHOR("Charles Spirakis <bezaur@gmail.com>"); |
1639 | MODULE_DESCRIPTION("W83791D driver"); | 1631 | MODULE_DESCRIPTION("W83791D driver"); |
1640 | MODULE_LICENSE("GPL"); | 1632 | MODULE_LICENSE("GPL"); |
1641 | |||
1642 | module_init(sensors_w83791d_init); | ||
1643 | module_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 | ||
1644 | static int __init | 1644 | module_i2c_driver(w83792d_driver); |
1645 | sensors_w83792d_init(void) | ||
1646 | { | ||
1647 | return i2c_add_driver(&w83792d_driver); | ||
1648 | } | ||
1649 | |||
1650 | static void __exit | ||
1651 | sensors_w83792d_exit(void) | ||
1652 | { | ||
1653 | i2c_del_driver(&w83792d_driver); | ||
1654 | } | ||
1655 | 1645 | ||
1656 | MODULE_AUTHOR("Chunhao Huang @ Winbond <DZShen@Winbond.com.tw>"); | 1646 | MODULE_AUTHOR("Chunhao Huang @ Winbond <DZShen@Winbond.com.tw>"); |
1657 | MODULE_DESCRIPTION("W83792AD/D driver for linux-2.6"); | 1647 | MODULE_DESCRIPTION("W83792AD/D driver for linux-2.6"); |
1658 | MODULE_LICENSE("GPL"); | 1648 | MODULE_LICENSE("GPL"); |
1659 | |||
1660 | module_init(sensors_w83792d_init); | ||
1661 | module_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 | ||
2123 | static int __init sensors_w83793_init(void) | 2123 | module_i2c_driver(w83793_driver); |
2124 | { | ||
2125 | return i2c_add_driver(&w83793_driver); | ||
2126 | } | ||
2127 | |||
2128 | static void __exit sensors_w83793_exit(void) | ||
2129 | { | ||
2130 | i2c_del_driver(&w83793_driver); | ||
2131 | } | ||
2132 | 2124 | ||
2133 | MODULE_AUTHOR("Yuan Mu, Sven Anders"); | 2125 | MODULE_AUTHOR("Yuan Mu, Sven Anders"); |
2134 | MODULE_DESCRIPTION("w83793 driver"); | 2126 | MODULE_DESCRIPTION("w83793 driver"); |
2135 | MODULE_LICENSE("GPL"); | 2127 | MODULE_LICENSE("GPL"); |
2136 | |||
2137 | module_init(sensors_w83793_init); | ||
2138 | module_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 | ||
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); | ||
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 | ||
305 | static int __init sensors_w83l785ts_init(void) | 305 | module_i2c_driver(w83l785ts_driver); |
306 | { | ||
307 | return i2c_add_driver(&w83l785ts_driver); | ||
308 | } | ||
309 | |||
310 | static void __exit sensors_w83l785ts_exit(void) | ||
311 | { | ||
312 | i2c_del_driver(&w83l785ts_driver); | ||
313 | } | ||
314 | 306 | ||
315 | MODULE_AUTHOR("Jean Delvare <khali@linux-fr.org>"); | 307 | MODULE_AUTHOR("Jean Delvare <khali@linux-fr.org>"); |
316 | MODULE_DESCRIPTION("W83L785TS-S driver"); | 308 | MODULE_DESCRIPTION("W83L785TS-S driver"); |
317 | MODULE_LICENSE("GPL"); | 309 | MODULE_LICENSE("GPL"); |
318 | |||
319 | module_init(sensors_w83l785ts_init); | ||
320 | module_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 | ||
772 | static int __init | 772 | module_i2c_driver(w83l786ng_driver); |
773 | sensors_w83l786ng_init(void) | ||
774 | { | ||
775 | return i2c_add_driver(&w83l786ng_driver); | ||
776 | } | ||
777 | |||
778 | static void __exit | ||
779 | sensors_w83l786ng_exit(void) | ||
780 | { | ||
781 | i2c_del_driver(&w83l786ng_driver); | ||
782 | } | ||
783 | 773 | ||
784 | MODULE_AUTHOR("Kevin Lo"); | 774 | MODULE_AUTHOR("Kevin Lo"); |
785 | MODULE_DESCRIPTION("w83l786ng driver"); | 775 | MODULE_DESCRIPTION("w83l786ng driver"); |
786 | MODULE_LICENSE("GPL"); | 776 | MODULE_LICENSE("GPL"); |
787 | |||
788 | module_init(sensors_w83l786ng_init); | ||
789 | module_exit(sensors_w83l786ng_exit); | ||