diff options
60 files changed, 60 insertions, 761 deletions
diff --git a/drivers/ata/acard-ahci.c b/drivers/ata/acard-ahci.c index 3bc8c79bf2c7..4e94ba29cb8d 100644 --- a/drivers/ata/acard-ahci.c +++ b/drivers/ata/acard-ahci.c | |||
@@ -503,21 +503,10 @@ static int acard_ahci_init_one(struct pci_dev *pdev, const struct pci_device_id | |||
503 | &acard_ahci_sht); | 503 | &acard_ahci_sht); |
504 | } | 504 | } |
505 | 505 | ||
506 | static int __init acard_ahci_init(void) | 506 | module_pci_driver(acard_ahci_pci_driver); |
507 | { | ||
508 | return pci_register_driver(&acard_ahci_pci_driver); | ||
509 | } | ||
510 | |||
511 | static void __exit acard_ahci_exit(void) | ||
512 | { | ||
513 | pci_unregister_driver(&acard_ahci_pci_driver); | ||
514 | } | ||
515 | 507 | ||
516 | MODULE_AUTHOR("Jeff Garzik"); | 508 | MODULE_AUTHOR("Jeff Garzik"); |
517 | MODULE_DESCRIPTION("ACard AHCI SATA low-level driver"); | 509 | MODULE_DESCRIPTION("ACard AHCI SATA low-level driver"); |
518 | MODULE_LICENSE("GPL"); | 510 | MODULE_LICENSE("GPL"); |
519 | MODULE_DEVICE_TABLE(pci, acard_ahci_pci_tbl); | 511 | MODULE_DEVICE_TABLE(pci, acard_ahci_pci_tbl); |
520 | MODULE_VERSION(DRV_VERSION); | 512 | MODULE_VERSION(DRV_VERSION); |
521 | |||
522 | module_init(acard_ahci_init); | ||
523 | module_exit(acard_ahci_exit); | ||
diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c index 20da1bcfebb9..4d9373e509cc 100644 --- a/drivers/ata/ahci.c +++ b/drivers/ata/ahci.c | |||
@@ -1249,22 +1249,10 @@ static int ahci_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
1249 | &ahci_sht); | 1249 | &ahci_sht); |
1250 | } | 1250 | } |
1251 | 1251 | ||
1252 | static int __init ahci_init(void) | 1252 | module_pci_driver(ahci_pci_driver); |
1253 | { | ||
1254 | return pci_register_driver(&ahci_pci_driver); | ||
1255 | } | ||
1256 | |||
1257 | static void __exit ahci_exit(void) | ||
1258 | { | ||
1259 | pci_unregister_driver(&ahci_pci_driver); | ||
1260 | } | ||
1261 | |||
1262 | 1253 | ||
1263 | MODULE_AUTHOR("Jeff Garzik"); | 1254 | MODULE_AUTHOR("Jeff Garzik"); |
1264 | MODULE_DESCRIPTION("AHCI SATA low-level driver"); | 1255 | MODULE_DESCRIPTION("AHCI SATA low-level driver"); |
1265 | MODULE_LICENSE("GPL"); | 1256 | MODULE_LICENSE("GPL"); |
1266 | MODULE_DEVICE_TABLE(pci, ahci_pci_tbl); | 1257 | MODULE_DEVICE_TABLE(pci, ahci_pci_tbl); |
1267 | MODULE_VERSION(DRV_VERSION); | 1258 | MODULE_VERSION(DRV_VERSION); |
1268 | |||
1269 | module_init(ahci_init); | ||
1270 | module_exit(ahci_exit); | ||
diff --git a/drivers/ata/ata_generic.c b/drivers/ata/ata_generic.c index aae115600b74..f8f38a08abc5 100644 --- a/drivers/ata/ata_generic.c +++ b/drivers/ata/ata_generic.c | |||
@@ -255,17 +255,7 @@ static struct pci_driver ata_generic_pci_driver = { | |||
255 | #endif | 255 | #endif |
256 | }; | 256 | }; |
257 | 257 | ||
258 | static int __init ata_generic_init(void) | 258 | module_pci_driver(ata_generic_pci_driver); |
259 | { | ||
260 | return pci_register_driver(&ata_generic_pci_driver); | ||
261 | } | ||
262 | |||
263 | |||
264 | static void __exit ata_generic_exit(void) | ||
265 | { | ||
266 | pci_unregister_driver(&ata_generic_pci_driver); | ||
267 | } | ||
268 | |||
269 | 259 | ||
270 | MODULE_AUTHOR("Alan Cox"); | 260 | MODULE_AUTHOR("Alan Cox"); |
271 | MODULE_DESCRIPTION("low-level driver for generic ATA"); | 261 | MODULE_DESCRIPTION("low-level driver for generic ATA"); |
@@ -273,7 +263,4 @@ MODULE_LICENSE("GPL"); | |||
273 | MODULE_DEVICE_TABLE(pci, ata_generic); | 263 | MODULE_DEVICE_TABLE(pci, ata_generic); |
274 | MODULE_VERSION(DRV_VERSION); | 264 | MODULE_VERSION(DRV_VERSION); |
275 | 265 | ||
276 | module_init(ata_generic_init); | ||
277 | module_exit(ata_generic_exit); | ||
278 | |||
279 | module_param(all_generic_ide, int, 0); | 266 | module_param(all_generic_ide, int, 0); |
diff --git a/drivers/ata/pata_acpi.c b/drivers/ata/pata_acpi.c index b63ca3b54fb9..09723b76beac 100644 --- a/drivers/ata/pata_acpi.c +++ b/drivers/ata/pata_acpi.c | |||
@@ -273,22 +273,10 @@ static struct pci_driver pacpi_pci_driver = { | |||
273 | #endif | 273 | #endif |
274 | }; | 274 | }; |
275 | 275 | ||
276 | static int __init pacpi_init(void) | 276 | module_pci_driver(pacpi_pci_driver); |
277 | { | ||
278 | return pci_register_driver(&pacpi_pci_driver); | ||
279 | } | ||
280 | |||
281 | static void __exit pacpi_exit(void) | ||
282 | { | ||
283 | pci_unregister_driver(&pacpi_pci_driver); | ||
284 | } | ||
285 | |||
286 | module_init(pacpi_init); | ||
287 | module_exit(pacpi_exit); | ||
288 | 277 | ||
289 | MODULE_AUTHOR("Alan Cox"); | 278 | MODULE_AUTHOR("Alan Cox"); |
290 | MODULE_DESCRIPTION("SCSI low-level driver for ATA in ACPI mode"); | 279 | MODULE_DESCRIPTION("SCSI low-level driver for ATA in ACPI mode"); |
291 | MODULE_LICENSE("GPL"); | 280 | MODULE_LICENSE("GPL"); |
292 | MODULE_DEVICE_TABLE(pci, pacpi_pci_tbl); | 281 | MODULE_DEVICE_TABLE(pci, pacpi_pci_tbl); |
293 | MODULE_VERSION(DRV_VERSION); | 282 | MODULE_VERSION(DRV_VERSION); |
294 | |||
diff --git a/drivers/ata/pata_amd.c b/drivers/ata/pata_amd.c index dc6b5dae0463..82a08922afcd 100644 --- a/drivers/ata/pata_amd.c +++ b/drivers/ata/pata_amd.c | |||
@@ -632,21 +632,10 @@ static struct pci_driver amd_pci_driver = { | |||
632 | #endif | 632 | #endif |
633 | }; | 633 | }; |
634 | 634 | ||
635 | static int __init amd_init(void) | 635 | module_pci_driver(amd_pci_driver); |
636 | { | ||
637 | return pci_register_driver(&amd_pci_driver); | ||
638 | } | ||
639 | |||
640 | static void __exit amd_exit(void) | ||
641 | { | ||
642 | pci_unregister_driver(&amd_pci_driver); | ||
643 | } | ||
644 | 636 | ||
645 | MODULE_AUTHOR("Alan Cox"); | 637 | MODULE_AUTHOR("Alan Cox"); |
646 | MODULE_DESCRIPTION("low-level driver for AMD and Nvidia PATA IDE"); | 638 | MODULE_DESCRIPTION("low-level driver for AMD and Nvidia PATA IDE"); |
647 | MODULE_LICENSE("GPL"); | 639 | MODULE_LICENSE("GPL"); |
648 | MODULE_DEVICE_TABLE(pci, amd); | 640 | MODULE_DEVICE_TABLE(pci, amd); |
649 | MODULE_VERSION(DRV_VERSION); | 641 | MODULE_VERSION(DRV_VERSION); |
650 | |||
651 | module_init(amd_init); | ||
652 | module_exit(amd_exit); | ||
diff --git a/drivers/ata/pata_artop.c b/drivers/ata/pata_artop.c index 4b8b22efc00b..74b215c09b21 100644 --- a/drivers/ata/pata_artop.c +++ b/drivers/ata/pata_artop.c | |||
@@ -451,18 +451,7 @@ static struct pci_driver artop_pci_driver = { | |||
451 | #endif | 451 | #endif |
452 | }; | 452 | }; |
453 | 453 | ||
454 | static int __init artop_init(void) | 454 | module_pci_driver(artop_pci_driver); |
455 | { | ||
456 | return pci_register_driver(&artop_pci_driver); | ||
457 | } | ||
458 | |||
459 | static void __exit artop_exit(void) | ||
460 | { | ||
461 | pci_unregister_driver(&artop_pci_driver); | ||
462 | } | ||
463 | |||
464 | module_init(artop_init); | ||
465 | module_exit(artop_exit); | ||
466 | 455 | ||
467 | MODULE_AUTHOR("Alan Cox, Bartlomiej Zolnierkiewicz"); | 456 | MODULE_AUTHOR("Alan Cox, Bartlomiej Zolnierkiewicz"); |
468 | MODULE_DESCRIPTION("SCSI low-level driver for ARTOP PATA"); | 457 | MODULE_DESCRIPTION("SCSI low-level driver for ARTOP PATA"); |
diff --git a/drivers/ata/pata_atiixp.c b/drivers/ata/pata_atiixp.c index be1aa1486d39..361c75cea57b 100644 --- a/drivers/ata/pata_atiixp.c +++ b/drivers/ata/pata_atiixp.c | |||
@@ -289,22 +289,10 @@ static struct pci_driver atiixp_pci_driver = { | |||
289 | #endif | 289 | #endif |
290 | }; | 290 | }; |
291 | 291 | ||
292 | static int __init atiixp_init(void) | 292 | module_pci_driver(atiixp_pci_driver); |
293 | { | ||
294 | return pci_register_driver(&atiixp_pci_driver); | ||
295 | } | ||
296 | |||
297 | |||
298 | static void __exit atiixp_exit(void) | ||
299 | { | ||
300 | pci_unregister_driver(&atiixp_pci_driver); | ||
301 | } | ||
302 | 293 | ||
303 | MODULE_AUTHOR("Alan Cox"); | 294 | MODULE_AUTHOR("Alan Cox"); |
304 | MODULE_DESCRIPTION("low-level driver for ATI IXP200/300/400"); | 295 | MODULE_DESCRIPTION("low-level driver for ATI IXP200/300/400"); |
305 | MODULE_LICENSE("GPL"); | 296 | MODULE_LICENSE("GPL"); |
306 | MODULE_DEVICE_TABLE(pci, atiixp); | 297 | MODULE_DEVICE_TABLE(pci, atiixp); |
307 | MODULE_VERSION(DRV_VERSION); | 298 | MODULE_VERSION(DRV_VERSION); |
308 | |||
309 | module_init(atiixp_init); | ||
310 | module_exit(atiixp_exit); | ||
diff --git a/drivers/ata/pata_atp867x.c b/drivers/ata/pata_atp867x.c index 3cfabb262af2..041f50d53240 100644 --- a/drivers/ata/pata_atp867x.c +++ b/drivers/ata/pata_atp867x.c | |||
@@ -565,21 +565,10 @@ static struct pci_driver atp867x_driver = { | |||
565 | #endif | 565 | #endif |
566 | }; | 566 | }; |
567 | 567 | ||
568 | static int __init atp867x_init(void) | 568 | module_pci_driver(atp867x_driver); |
569 | { | ||
570 | return pci_register_driver(&atp867x_driver); | ||
571 | } | ||
572 | |||
573 | static void __exit atp867x_exit(void) | ||
574 | { | ||
575 | pci_unregister_driver(&atp867x_driver); | ||
576 | } | ||
577 | 569 | ||
578 | MODULE_AUTHOR("John(Jung-Ik) Lee, Google Inc."); | 570 | MODULE_AUTHOR("John(Jung-Ik) Lee, Google Inc."); |
579 | MODULE_DESCRIPTION("low level driver for Artop/Acard 867x ATA controller"); | 571 | MODULE_DESCRIPTION("low level driver for Artop/Acard 867x ATA controller"); |
580 | MODULE_LICENSE("GPL"); | 572 | MODULE_LICENSE("GPL"); |
581 | MODULE_DEVICE_TABLE(pci, atp867x_pci_tbl); | 573 | MODULE_DEVICE_TABLE(pci, atp867x_pci_tbl); |
582 | MODULE_VERSION(DRV_VERSION); | 574 | MODULE_VERSION(DRV_VERSION); |
583 | |||
584 | module_init(atp867x_init); | ||
585 | module_exit(atp867x_exit); | ||
diff --git a/drivers/ata/pata_cmd640.c b/drivers/ata/pata_cmd640.c index 549d28dbf90d..504b98b58e19 100644 --- a/drivers/ata/pata_cmd640.c +++ b/drivers/ata/pata_cmd640.c | |||
@@ -263,21 +263,10 @@ static struct pci_driver cmd640_pci_driver = { | |||
263 | #endif | 263 | #endif |
264 | }; | 264 | }; |
265 | 265 | ||
266 | static int __init cmd640_init(void) | 266 | module_pci_driver(cmd640_pci_driver); |
267 | { | ||
268 | return pci_register_driver(&cmd640_pci_driver); | ||
269 | } | ||
270 | |||
271 | static void __exit cmd640_exit(void) | ||
272 | { | ||
273 | pci_unregister_driver(&cmd640_pci_driver); | ||
274 | } | ||
275 | 267 | ||
276 | MODULE_AUTHOR("Alan Cox"); | 268 | MODULE_AUTHOR("Alan Cox"); |
277 | MODULE_DESCRIPTION("low-level driver for CMD640 PATA controllers"); | 269 | MODULE_DESCRIPTION("low-level driver for CMD640 PATA controllers"); |
278 | MODULE_LICENSE("GPL"); | 270 | MODULE_LICENSE("GPL"); |
279 | MODULE_DEVICE_TABLE(pci, cmd640); | 271 | MODULE_DEVICE_TABLE(pci, cmd640); |
280 | MODULE_VERSION(DRV_VERSION); | 272 | MODULE_VERSION(DRV_VERSION); |
281 | |||
282 | module_init(cmd640_init); | ||
283 | module_exit(cmd640_exit); | ||
diff --git a/drivers/ata/pata_cmd64x.c b/drivers/ata/pata_cmd64x.c index 1c17cd1e8b2d..8ec25af898de 100644 --- a/drivers/ata/pata_cmd64x.c +++ b/drivers/ata/pata_cmd64x.c | |||
@@ -525,21 +525,10 @@ static struct pci_driver cmd64x_pci_driver = { | |||
525 | #endif | 525 | #endif |
526 | }; | 526 | }; |
527 | 527 | ||
528 | static int __init cmd64x_init(void) | 528 | module_pci_driver(cmd64x_pci_driver); |
529 | { | ||
530 | return pci_register_driver(&cmd64x_pci_driver); | ||
531 | } | ||
532 | |||
533 | static void __exit cmd64x_exit(void) | ||
534 | { | ||
535 | pci_unregister_driver(&cmd64x_pci_driver); | ||
536 | } | ||
537 | 529 | ||
538 | MODULE_AUTHOR("Alan Cox"); | 530 | MODULE_AUTHOR("Alan Cox"); |
539 | MODULE_DESCRIPTION("low-level driver for CMD64x series PATA controllers"); | 531 | MODULE_DESCRIPTION("low-level driver for CMD64x series PATA controllers"); |
540 | MODULE_LICENSE("GPL"); | 532 | MODULE_LICENSE("GPL"); |
541 | MODULE_DEVICE_TABLE(pci, cmd64x); | 533 | MODULE_DEVICE_TABLE(pci, cmd64x); |
542 | MODULE_VERSION(DRV_VERSION); | 534 | MODULE_VERSION(DRV_VERSION); |
543 | |||
544 | module_init(cmd64x_init); | ||
545 | module_exit(cmd64x_exit); | ||
diff --git a/drivers/ata/pata_cs5520.c b/drivers/ata/pata_cs5520.c index 9ddcddc66a20..de74d804f031 100644 --- a/drivers/ata/pata_cs5520.c +++ b/drivers/ata/pata_cs5520.c | |||
@@ -302,22 +302,10 @@ static struct pci_driver cs5520_pci_driver = { | |||
302 | #endif | 302 | #endif |
303 | }; | 303 | }; |
304 | 304 | ||
305 | static int __init cs5520_init(void) | 305 | module_pci_driver(cs5520_pci_driver); |
306 | { | ||
307 | return pci_register_driver(&cs5520_pci_driver); | ||
308 | } | ||
309 | |||
310 | static void __exit cs5520_exit(void) | ||
311 | { | ||
312 | pci_unregister_driver(&cs5520_pci_driver); | ||
313 | } | ||
314 | 306 | ||
315 | MODULE_AUTHOR("Alan Cox"); | 307 | MODULE_AUTHOR("Alan Cox"); |
316 | MODULE_DESCRIPTION("low-level driver for Cyrix CS5510/5520"); | 308 | MODULE_DESCRIPTION("low-level driver for Cyrix CS5510/5520"); |
317 | MODULE_LICENSE("GPL"); | 309 | MODULE_LICENSE("GPL"); |
318 | MODULE_DEVICE_TABLE(pci, pata_cs5520); | 310 | MODULE_DEVICE_TABLE(pci, pata_cs5520); |
319 | MODULE_VERSION(DRV_VERSION); | 311 | MODULE_VERSION(DRV_VERSION); |
320 | |||
321 | module_init(cs5520_init); | ||
322 | module_exit(cs5520_exit); | ||
323 | |||
diff --git a/drivers/ata/pata_cs5530.c b/drivers/ata/pata_cs5530.c index f792330f0d8e..48389ae0b330 100644 --- a/drivers/ata/pata_cs5530.c +++ b/drivers/ata/pata_cs5530.c | |||
@@ -363,21 +363,10 @@ static struct pci_driver cs5530_pci_driver = { | |||
363 | #endif | 363 | #endif |
364 | }; | 364 | }; |
365 | 365 | ||
366 | static int __init cs5530_init(void) | 366 | module_pci_driver(cs5530_pci_driver); |
367 | { | ||
368 | return pci_register_driver(&cs5530_pci_driver); | ||
369 | } | ||
370 | |||
371 | static void __exit cs5530_exit(void) | ||
372 | { | ||
373 | pci_unregister_driver(&cs5530_pci_driver); | ||
374 | } | ||
375 | 367 | ||
376 | MODULE_AUTHOR("Alan Cox"); | 368 | MODULE_AUTHOR("Alan Cox"); |
377 | MODULE_DESCRIPTION("low-level driver for the Cyrix/NS/AMD 5530"); | 369 | MODULE_DESCRIPTION("low-level driver for the Cyrix/NS/AMD 5530"); |
378 | MODULE_LICENSE("GPL"); | 370 | MODULE_LICENSE("GPL"); |
379 | MODULE_DEVICE_TABLE(pci, cs5530); | 371 | MODULE_DEVICE_TABLE(pci, cs5530); |
380 | MODULE_VERSION(DRV_VERSION); | 372 | MODULE_VERSION(DRV_VERSION); |
381 | |||
382 | module_init(cs5530_init); | ||
383 | module_exit(cs5530_exit); | ||
diff --git a/drivers/ata/pata_cs5535.c b/drivers/ata/pata_cs5535.c index a0b4640125ae..997e16a3a63f 100644 --- a/drivers/ata/pata_cs5535.c +++ b/drivers/ata/pata_cs5535.c | |||
@@ -207,21 +207,10 @@ static struct pci_driver cs5535_pci_driver = { | |||
207 | #endif | 207 | #endif |
208 | }; | 208 | }; |
209 | 209 | ||
210 | static int __init cs5535_init(void) | 210 | module_pci_driver(cs5535_pci_driver); |
211 | { | ||
212 | return pci_register_driver(&cs5535_pci_driver); | ||
213 | } | ||
214 | |||
215 | static void __exit cs5535_exit(void) | ||
216 | { | ||
217 | pci_unregister_driver(&cs5535_pci_driver); | ||
218 | } | ||
219 | 211 | ||
220 | MODULE_AUTHOR("Alan Cox, Jens Altmann, Wolfgan Zuleger, Alexander Kiausch"); | 212 | MODULE_AUTHOR("Alan Cox, Jens Altmann, Wolfgan Zuleger, Alexander Kiausch"); |
221 | MODULE_DESCRIPTION("low-level driver for the NS/AMD 5535"); | 213 | MODULE_DESCRIPTION("low-level driver for the NS/AMD 5535"); |
222 | MODULE_LICENSE("GPL"); | 214 | MODULE_LICENSE("GPL"); |
223 | MODULE_DEVICE_TABLE(pci, cs5535); | 215 | MODULE_DEVICE_TABLE(pci, cs5535); |
224 | MODULE_VERSION(DRV_VERSION); | 216 | MODULE_VERSION(DRV_VERSION); |
225 | |||
226 | module_init(cs5535_init); | ||
227 | module_exit(cs5535_exit); | ||
diff --git a/drivers/ata/pata_cs5536.c b/drivers/ata/pata_cs5536.c index 7a402c75ab90..dec1b6c4b351 100644 --- a/drivers/ata/pata_cs5536.c +++ b/drivers/ata/pata_cs5536.c | |||
@@ -274,21 +274,10 @@ static struct pci_driver cs5536_pci_driver = { | |||
274 | #endif | 274 | #endif |
275 | }; | 275 | }; |
276 | 276 | ||
277 | static int __init cs5536_init(void) | 277 | module_pci_driver(cs5536_pci_driver); |
278 | { | ||
279 | return pci_register_driver(&cs5536_pci_driver); | ||
280 | } | ||
281 | |||
282 | static void __exit cs5536_exit(void) | ||
283 | { | ||
284 | pci_unregister_driver(&cs5536_pci_driver); | ||
285 | } | ||
286 | 278 | ||
287 | MODULE_AUTHOR("Martin K. Petersen"); | 279 | MODULE_AUTHOR("Martin K. Petersen"); |
288 | MODULE_DESCRIPTION("low-level driver for the CS5536 IDE controller"); | 280 | MODULE_DESCRIPTION("low-level driver for the CS5536 IDE controller"); |
289 | MODULE_LICENSE("GPL"); | 281 | MODULE_LICENSE("GPL"); |
290 | MODULE_DEVICE_TABLE(pci, cs5536); | 282 | MODULE_DEVICE_TABLE(pci, cs5536); |
291 | MODULE_VERSION(DRV_VERSION); | 283 | MODULE_VERSION(DRV_VERSION); |
292 | |||
293 | module_init(cs5536_init); | ||
294 | module_exit(cs5536_exit); | ||
diff --git a/drivers/ata/pata_cypress.c b/drivers/ata/pata_cypress.c index 6d915b063d93..810bc9964dde 100644 --- a/drivers/ata/pata_cypress.c +++ b/drivers/ata/pata_cypress.c | |||
@@ -158,23 +158,10 @@ static struct pci_driver cy82c693_pci_driver = { | |||
158 | #endif | 158 | #endif |
159 | }; | 159 | }; |
160 | 160 | ||
161 | static int __init cy82c693_init(void) | 161 | module_pci_driver(cy82c693_pci_driver); |
162 | { | ||
163 | return pci_register_driver(&cy82c693_pci_driver); | ||
164 | } | ||
165 | |||
166 | |||
167 | static void __exit cy82c693_exit(void) | ||
168 | { | ||
169 | pci_unregister_driver(&cy82c693_pci_driver); | ||
170 | } | ||
171 | |||
172 | 162 | ||
173 | MODULE_AUTHOR("Alan Cox"); | 163 | MODULE_AUTHOR("Alan Cox"); |
174 | MODULE_DESCRIPTION("low-level driver for the CY82C693 PATA controller"); | 164 | MODULE_DESCRIPTION("low-level driver for the CY82C693 PATA controller"); |
175 | MODULE_LICENSE("GPL"); | 165 | MODULE_LICENSE("GPL"); |
176 | MODULE_DEVICE_TABLE(pci, cy82c693); | 166 | MODULE_DEVICE_TABLE(pci, cy82c693); |
177 | MODULE_VERSION(DRV_VERSION); | 167 | MODULE_VERSION(DRV_VERSION); |
178 | |||
179 | module_init(cy82c693_init); | ||
180 | module_exit(cy82c693_exit); | ||
diff --git a/drivers/ata/pata_efar.c b/drivers/ata/pata_efar.c index f0243ed206f7..3c12fd7acd41 100644 --- a/drivers/ata/pata_efar.c +++ b/drivers/ata/pata_efar.c | |||
@@ -295,22 +295,10 @@ static struct pci_driver efar_pci_driver = { | |||
295 | #endif | 295 | #endif |
296 | }; | 296 | }; |
297 | 297 | ||
298 | static int __init efar_init(void) | 298 | module_pci_driver(efar_pci_driver); |
299 | { | ||
300 | return pci_register_driver(&efar_pci_driver); | ||
301 | } | ||
302 | |||
303 | static void __exit efar_exit(void) | ||
304 | { | ||
305 | pci_unregister_driver(&efar_pci_driver); | ||
306 | } | ||
307 | |||
308 | module_init(efar_init); | ||
309 | module_exit(efar_exit); | ||
310 | 299 | ||
311 | MODULE_AUTHOR("Alan Cox"); | 300 | MODULE_AUTHOR("Alan Cox"); |
312 | MODULE_DESCRIPTION("SCSI low-level driver for EFAR PIIX clones"); | 301 | MODULE_DESCRIPTION("SCSI low-level driver for EFAR PIIX clones"); |
313 | MODULE_LICENSE("GPL"); | 302 | MODULE_LICENSE("GPL"); |
314 | MODULE_DEVICE_TABLE(pci, efar_pci_tbl); | 303 | MODULE_DEVICE_TABLE(pci, efar_pci_tbl); |
315 | MODULE_VERSION(DRV_VERSION); | 304 | MODULE_VERSION(DRV_VERSION); |
316 | |||
diff --git a/drivers/ata/pata_hpt366.c b/drivers/ata/pata_hpt366.c index 42cffd38910d..4be884a9f5ed 100644 --- a/drivers/ata/pata_hpt366.c +++ b/drivers/ata/pata_hpt366.c | |||
@@ -418,21 +418,10 @@ static struct pci_driver hpt36x_pci_driver = { | |||
418 | #endif | 418 | #endif |
419 | }; | 419 | }; |
420 | 420 | ||
421 | static int __init hpt36x_init(void) | 421 | module_pci_driver(hpt36x_pci_driver); |
422 | { | ||
423 | return pci_register_driver(&hpt36x_pci_driver); | ||
424 | } | ||
425 | |||
426 | static void __exit hpt36x_exit(void) | ||
427 | { | ||
428 | pci_unregister_driver(&hpt36x_pci_driver); | ||
429 | } | ||
430 | 422 | ||
431 | MODULE_AUTHOR("Alan Cox"); | 423 | MODULE_AUTHOR("Alan Cox"); |
432 | MODULE_DESCRIPTION("low-level driver for the Highpoint HPT366/368"); | 424 | MODULE_DESCRIPTION("low-level driver for the Highpoint HPT366/368"); |
433 | MODULE_LICENSE("GPL"); | 425 | MODULE_LICENSE("GPL"); |
434 | MODULE_DEVICE_TABLE(pci, hpt36x); | 426 | MODULE_DEVICE_TABLE(pci, hpt36x); |
435 | MODULE_VERSION(DRV_VERSION); | 427 | MODULE_VERSION(DRV_VERSION); |
436 | |||
437 | module_init(hpt36x_init); | ||
438 | module_exit(hpt36x_exit); | ||
diff --git a/drivers/ata/pata_hpt37x.c b/drivers/ata/pata_hpt37x.c index 9620636aa405..a9d74eff5fc4 100644 --- a/drivers/ata/pata_hpt37x.c +++ b/drivers/ata/pata_hpt37x.c | |||
@@ -1058,21 +1058,10 @@ static struct pci_driver hpt37x_pci_driver = { | |||
1058 | .remove = ata_pci_remove_one | 1058 | .remove = ata_pci_remove_one |
1059 | }; | 1059 | }; |
1060 | 1060 | ||
1061 | static int __init hpt37x_init(void) | 1061 | module_pci_driver(hpt37x_pci_driver); |
1062 | { | ||
1063 | return pci_register_driver(&hpt37x_pci_driver); | ||
1064 | } | ||
1065 | |||
1066 | static void __exit hpt37x_exit(void) | ||
1067 | { | ||
1068 | pci_unregister_driver(&hpt37x_pci_driver); | ||
1069 | } | ||
1070 | 1062 | ||
1071 | MODULE_AUTHOR("Alan Cox"); | 1063 | MODULE_AUTHOR("Alan Cox"); |
1072 | MODULE_DESCRIPTION("low-level driver for the Highpoint HPT37x/30x"); | 1064 | MODULE_DESCRIPTION("low-level driver for the Highpoint HPT37x/30x"); |
1073 | MODULE_LICENSE("GPL"); | 1065 | MODULE_LICENSE("GPL"); |
1074 | MODULE_DEVICE_TABLE(pci, hpt37x); | 1066 | MODULE_DEVICE_TABLE(pci, hpt37x); |
1075 | MODULE_VERSION(DRV_VERSION); | 1067 | MODULE_VERSION(DRV_VERSION); |
1076 | |||
1077 | module_init(hpt37x_init); | ||
1078 | module_exit(hpt37x_exit); | ||
diff --git a/drivers/ata/pata_hpt3x2n.c b/drivers/ata/pata_hpt3x2n.c index 765f136d8cd3..4be0398c153d 100644 --- a/drivers/ata/pata_hpt3x2n.c +++ b/drivers/ata/pata_hpt3x2n.c | |||
@@ -621,21 +621,10 @@ static struct pci_driver hpt3x2n_pci_driver = { | |||
621 | .remove = ata_pci_remove_one | 621 | .remove = ata_pci_remove_one |
622 | }; | 622 | }; |
623 | 623 | ||
624 | static int __init hpt3x2n_init(void) | 624 | module_pci_driver(hpt3x2n_pci_driver); |
625 | { | ||
626 | return pci_register_driver(&hpt3x2n_pci_driver); | ||
627 | } | ||
628 | |||
629 | static void __exit hpt3x2n_exit(void) | ||
630 | { | ||
631 | pci_unregister_driver(&hpt3x2n_pci_driver); | ||
632 | } | ||
633 | 625 | ||
634 | MODULE_AUTHOR("Alan Cox"); | 626 | MODULE_AUTHOR("Alan Cox"); |
635 | MODULE_DESCRIPTION("low-level driver for the Highpoint HPT3xxN"); | 627 | MODULE_DESCRIPTION("low-level driver for the Highpoint HPT3xxN"); |
636 | MODULE_LICENSE("GPL"); | 628 | MODULE_LICENSE("GPL"); |
637 | MODULE_DEVICE_TABLE(pci, hpt3x2n); | 629 | MODULE_DEVICE_TABLE(pci, hpt3x2n); |
638 | MODULE_VERSION(DRV_VERSION); | 630 | MODULE_VERSION(DRV_VERSION); |
639 | |||
640 | module_init(hpt3x2n_init); | ||
641 | module_exit(hpt3x2n_exit); | ||
diff --git a/drivers/ata/pata_hpt3x3.c b/drivers/ata/pata_hpt3x3.c index b3042dab08bb..76c9314bb824 100644 --- a/drivers/ata/pata_hpt3x3.c +++ b/drivers/ata/pata_hpt3x3.c | |||
@@ -284,23 +284,10 @@ static struct pci_driver hpt3x3_pci_driver = { | |||
284 | #endif | 284 | #endif |
285 | }; | 285 | }; |
286 | 286 | ||
287 | static int __init hpt3x3_init(void) | 287 | module_pci_driver(hpt3x3_pci_driver); |
288 | { | ||
289 | return pci_register_driver(&hpt3x3_pci_driver); | ||
290 | } | ||
291 | |||
292 | |||
293 | static void __exit hpt3x3_exit(void) | ||
294 | { | ||
295 | pci_unregister_driver(&hpt3x3_pci_driver); | ||
296 | } | ||
297 | |||
298 | 288 | ||
299 | MODULE_AUTHOR("Alan Cox"); | 289 | MODULE_AUTHOR("Alan Cox"); |
300 | MODULE_DESCRIPTION("low-level driver for the Highpoint HPT343/363"); | 290 | MODULE_DESCRIPTION("low-level driver for the Highpoint HPT343/363"); |
301 | MODULE_LICENSE("GPL"); | 291 | MODULE_LICENSE("GPL"); |
302 | MODULE_DEVICE_TABLE(pci, hpt3x3); | 292 | MODULE_DEVICE_TABLE(pci, hpt3x3); |
303 | MODULE_VERSION(DRV_VERSION); | 293 | MODULE_VERSION(DRV_VERSION); |
304 | |||
305 | module_init(hpt3x3_init); | ||
306 | module_exit(hpt3x3_exit); | ||
diff --git a/drivers/ata/pata_it8213.c b/drivers/ata/pata_it8213.c index cf9164d79f11..2a8dd9527ecc 100644 --- a/drivers/ata/pata_it8213.c +++ b/drivers/ata/pata_it8213.c | |||
@@ -290,18 +290,7 @@ static struct pci_driver it8213_pci_driver = { | |||
290 | #endif | 290 | #endif |
291 | }; | 291 | }; |
292 | 292 | ||
293 | static int __init it8213_init(void) | 293 | module_pci_driver(it8213_pci_driver); |
294 | { | ||
295 | return pci_register_driver(&it8213_pci_driver); | ||
296 | } | ||
297 | |||
298 | static void __exit it8213_exit(void) | ||
299 | { | ||
300 | pci_unregister_driver(&it8213_pci_driver); | ||
301 | } | ||
302 | |||
303 | module_init(it8213_init); | ||
304 | module_exit(it8213_exit); | ||
305 | 294 | ||
306 | MODULE_AUTHOR("Alan Cox"); | 295 | MODULE_AUTHOR("Alan Cox"); |
307 | MODULE_DESCRIPTION("SCSI low-level driver for the ITE 8213"); | 296 | MODULE_DESCRIPTION("SCSI low-level driver for the ITE 8213"); |
diff --git a/drivers/ata/pata_it821x.c b/drivers/ata/pata_it821x.c index 62c5d00abd2e..9cc05d808ad5 100644 --- a/drivers/ata/pata_it821x.c +++ b/drivers/ata/pata_it821x.c | |||
@@ -972,15 +972,7 @@ static struct pci_driver it821x_pci_driver = { | |||
972 | #endif | 972 | #endif |
973 | }; | 973 | }; |
974 | 974 | ||
975 | static int __init it821x_init(void) | 975 | module_pci_driver(it821x_pci_driver); |
976 | { | ||
977 | return pci_register_driver(&it821x_pci_driver); | ||
978 | } | ||
979 | |||
980 | static void __exit it821x_exit(void) | ||
981 | { | ||
982 | pci_unregister_driver(&it821x_pci_driver); | ||
983 | } | ||
984 | 976 | ||
985 | MODULE_AUTHOR("Alan Cox"); | 977 | MODULE_AUTHOR("Alan Cox"); |
986 | MODULE_DESCRIPTION("low-level driver for the IT8211/IT8212 IDE RAID controller"); | 978 | MODULE_DESCRIPTION("low-level driver for the IT8211/IT8212 IDE RAID controller"); |
@@ -988,9 +980,5 @@ MODULE_LICENSE("GPL"); | |||
988 | MODULE_DEVICE_TABLE(pci, it821x); | 980 | MODULE_DEVICE_TABLE(pci, it821x); |
989 | MODULE_VERSION(DRV_VERSION); | 981 | MODULE_VERSION(DRV_VERSION); |
990 | 982 | ||
991 | |||
992 | module_param_named(noraid, it8212_noraid, int, S_IRUGO); | 983 | module_param_named(noraid, it8212_noraid, int, S_IRUGO); |
993 | MODULE_PARM_DESC(noraid, "Force card into bypass mode"); | 984 | MODULE_PARM_DESC(noraid, "Force card into bypass mode"); |
994 | |||
995 | module_init(it821x_init); | ||
996 | module_exit(it821x_exit); | ||
diff --git a/drivers/ata/pata_jmicron.c b/drivers/ata/pata_jmicron.c index cb3babbb7035..76e739b031b6 100644 --- a/drivers/ata/pata_jmicron.c +++ b/drivers/ata/pata_jmicron.c | |||
@@ -164,18 +164,7 @@ static struct pci_driver jmicron_pci_driver = { | |||
164 | #endif | 164 | #endif |
165 | }; | 165 | }; |
166 | 166 | ||
167 | static int __init jmicron_init(void) | 167 | module_pci_driver(jmicron_pci_driver); |
168 | { | ||
169 | return pci_register_driver(&jmicron_pci_driver); | ||
170 | } | ||
171 | |||
172 | static void __exit jmicron_exit(void) | ||
173 | { | ||
174 | pci_unregister_driver(&jmicron_pci_driver); | ||
175 | } | ||
176 | |||
177 | module_init(jmicron_init); | ||
178 | module_exit(jmicron_exit); | ||
179 | 168 | ||
180 | MODULE_AUTHOR("Alan Cox"); | 169 | MODULE_AUTHOR("Alan Cox"); |
181 | MODULE_DESCRIPTION("SCSI low-level driver for Jmicron PATA ports"); | 170 | MODULE_DESCRIPTION("SCSI low-level driver for Jmicron PATA ports"); |
diff --git a/drivers/ata/pata_marvell.c b/drivers/ata/pata_marvell.c index 5d7f58a7e34d..a4f5e781c8c2 100644 --- a/drivers/ata/pata_marvell.c +++ b/drivers/ata/pata_marvell.c | |||
@@ -178,22 +178,10 @@ static struct pci_driver marvell_pci_driver = { | |||
178 | #endif | 178 | #endif |
179 | }; | 179 | }; |
180 | 180 | ||
181 | static int __init marvell_init(void) | 181 | module_pci_driver(marvell_pci_driver); |
182 | { | ||
183 | return pci_register_driver(&marvell_pci_driver); | ||
184 | } | ||
185 | |||
186 | static void __exit marvell_exit(void) | ||
187 | { | ||
188 | pci_unregister_driver(&marvell_pci_driver); | ||
189 | } | ||
190 | |||
191 | module_init(marvell_init); | ||
192 | module_exit(marvell_exit); | ||
193 | 182 | ||
194 | MODULE_AUTHOR("Alan Cox"); | 183 | MODULE_AUTHOR("Alan Cox"); |
195 | MODULE_DESCRIPTION("SCSI low-level driver for Marvell ATA in legacy mode"); | 184 | MODULE_DESCRIPTION("SCSI low-level driver for Marvell ATA in legacy mode"); |
196 | MODULE_LICENSE("GPL"); | 185 | MODULE_LICENSE("GPL"); |
197 | MODULE_DEVICE_TABLE(pci, marvell_pci_tbl); | 186 | MODULE_DEVICE_TABLE(pci, marvell_pci_tbl); |
198 | MODULE_VERSION(DRV_VERSION); | 187 | MODULE_VERSION(DRV_VERSION); |
199 | |||
diff --git a/drivers/ata/pata_mpiix.c b/drivers/ata/pata_mpiix.c index 9dc16df84191..1f5f28bb0bb8 100644 --- a/drivers/ata/pata_mpiix.c +++ b/drivers/ata/pata_mpiix.c | |||
@@ -230,21 +230,10 @@ static struct pci_driver mpiix_pci_driver = { | |||
230 | #endif | 230 | #endif |
231 | }; | 231 | }; |
232 | 232 | ||
233 | static int __init mpiix_init(void) | 233 | module_pci_driver(mpiix_pci_driver); |
234 | { | ||
235 | return pci_register_driver(&mpiix_pci_driver); | ||
236 | } | ||
237 | |||
238 | static void __exit mpiix_exit(void) | ||
239 | { | ||
240 | pci_unregister_driver(&mpiix_pci_driver); | ||
241 | } | ||
242 | 234 | ||
243 | MODULE_AUTHOR("Alan Cox"); | 235 | MODULE_AUTHOR("Alan Cox"); |
244 | MODULE_DESCRIPTION("low-level driver for Intel MPIIX"); | 236 | MODULE_DESCRIPTION("low-level driver for Intel MPIIX"); |
245 | MODULE_LICENSE("GPL"); | 237 | MODULE_LICENSE("GPL"); |
246 | MODULE_DEVICE_TABLE(pci, mpiix); | 238 | MODULE_DEVICE_TABLE(pci, mpiix); |
247 | MODULE_VERSION(DRV_VERSION); | 239 | MODULE_VERSION(DRV_VERSION); |
248 | |||
249 | module_init(mpiix_init); | ||
250 | module_exit(mpiix_exit); | ||
diff --git a/drivers/ata/pata_netcell.c b/drivers/ata/pata_netcell.c index 9979a43bc596..ad1a0febd620 100644 --- a/drivers/ata/pata_netcell.c +++ b/drivers/ata/pata_netcell.c | |||
@@ -99,22 +99,10 @@ static struct pci_driver netcell_pci_driver = { | |||
99 | #endif | 99 | #endif |
100 | }; | 100 | }; |
101 | 101 | ||
102 | static int __init netcell_init(void) | 102 | module_pci_driver(netcell_pci_driver); |
103 | { | ||
104 | return pci_register_driver(&netcell_pci_driver); | ||
105 | } | ||
106 | |||
107 | static void __exit netcell_exit(void) | ||
108 | { | ||
109 | pci_unregister_driver(&netcell_pci_driver); | ||
110 | } | ||
111 | |||
112 | module_init(netcell_init); | ||
113 | module_exit(netcell_exit); | ||
114 | 103 | ||
115 | MODULE_AUTHOR("Alan Cox"); | 104 | MODULE_AUTHOR("Alan Cox"); |
116 | MODULE_DESCRIPTION("SCSI low-level driver for Netcell PATA RAID"); | 105 | MODULE_DESCRIPTION("SCSI low-level driver for Netcell PATA RAID"); |
117 | MODULE_LICENSE("GPL"); | 106 | MODULE_LICENSE("GPL"); |
118 | MODULE_DEVICE_TABLE(pci, netcell_pci_tbl); | 107 | MODULE_DEVICE_TABLE(pci, netcell_pci_tbl); |
119 | MODULE_VERSION(DRV_VERSION); | 108 | MODULE_VERSION(DRV_VERSION); |
120 | |||
diff --git a/drivers/ata/pata_ninja32.c b/drivers/ata/pata_ninja32.c index e277a142138c..12010ed596c4 100644 --- a/drivers/ata/pata_ninja32.c +++ b/drivers/ata/pata_ninja32.c | |||
@@ -190,21 +190,10 @@ static struct pci_driver ninja32_pci_driver = { | |||
190 | #endif | 190 | #endif |
191 | }; | 191 | }; |
192 | 192 | ||
193 | static int __init ninja32_init(void) | 193 | module_pci_driver(ninja32_pci_driver); |
194 | { | ||
195 | return pci_register_driver(&ninja32_pci_driver); | ||
196 | } | ||
197 | |||
198 | static void __exit ninja32_exit(void) | ||
199 | { | ||
200 | pci_unregister_driver(&ninja32_pci_driver); | ||
201 | } | ||
202 | 194 | ||
203 | MODULE_AUTHOR("Alan Cox"); | 195 | MODULE_AUTHOR("Alan Cox"); |
204 | MODULE_DESCRIPTION("low-level driver for Ninja32 ATA"); | 196 | MODULE_DESCRIPTION("low-level driver for Ninja32 ATA"); |
205 | MODULE_LICENSE("GPL"); | 197 | MODULE_LICENSE("GPL"); |
206 | MODULE_DEVICE_TABLE(pci, ninja32); | 198 | MODULE_DEVICE_TABLE(pci, ninja32); |
207 | MODULE_VERSION(DRV_VERSION); | 199 | MODULE_VERSION(DRV_VERSION); |
208 | |||
209 | module_init(ninja32_init); | ||
210 | module_exit(ninja32_exit); | ||
diff --git a/drivers/ata/pata_ns87410.c b/drivers/ata/pata_ns87410.c index 31d5986537a3..0c424dae56e7 100644 --- a/drivers/ata/pata_ns87410.c +++ b/drivers/ata/pata_ns87410.c | |||
@@ -168,21 +168,10 @@ static struct pci_driver ns87410_pci_driver = { | |||
168 | #endif | 168 | #endif |
169 | }; | 169 | }; |
170 | 170 | ||
171 | static int __init ns87410_init(void) | 171 | module_pci_driver(ns87410_pci_driver); |
172 | { | ||
173 | return pci_register_driver(&ns87410_pci_driver); | ||
174 | } | ||
175 | |||
176 | static void __exit ns87410_exit(void) | ||
177 | { | ||
178 | pci_unregister_driver(&ns87410_pci_driver); | ||
179 | } | ||
180 | 172 | ||
181 | MODULE_AUTHOR("Alan Cox"); | 173 | MODULE_AUTHOR("Alan Cox"); |
182 | MODULE_DESCRIPTION("low-level driver for Nat Semi 87410"); | 174 | MODULE_DESCRIPTION("low-level driver for Nat Semi 87410"); |
183 | MODULE_LICENSE("GPL"); | 175 | MODULE_LICENSE("GPL"); |
184 | MODULE_DEVICE_TABLE(pci, ns87410); | 176 | MODULE_DEVICE_TABLE(pci, ns87410); |
185 | MODULE_VERSION(DRV_VERSION); | 177 | MODULE_VERSION(DRV_VERSION); |
186 | |||
187 | module_init(ns87410_init); | ||
188 | module_exit(ns87410_exit); | ||
diff --git a/drivers/ata/pata_ns87415.c b/drivers/ata/pata_ns87415.c index f1d517bc5b49..6f6fa1060505 100644 --- a/drivers/ata/pata_ns87415.c +++ b/drivers/ata/pata_ns87415.c | |||
@@ -414,18 +414,7 @@ static struct pci_driver ns87415_pci_driver = { | |||
414 | #endif | 414 | #endif |
415 | }; | 415 | }; |
416 | 416 | ||
417 | static int __init ns87415_init(void) | 417 | module_pci_driver(ns87415_pci_driver); |
418 | { | ||
419 | return pci_register_driver(&ns87415_pci_driver); | ||
420 | } | ||
421 | |||
422 | static void __exit ns87415_exit(void) | ||
423 | { | ||
424 | pci_unregister_driver(&ns87415_pci_driver); | ||
425 | } | ||
426 | |||
427 | module_init(ns87415_init); | ||
428 | module_exit(ns87415_exit); | ||
429 | 418 | ||
430 | MODULE_AUTHOR("Alan Cox"); | 419 | MODULE_AUTHOR("Alan Cox"); |
431 | MODULE_DESCRIPTION("ATA low-level driver for NS87415 controllers"); | 420 | MODULE_DESCRIPTION("ATA low-level driver for NS87415 controllers"); |
diff --git a/drivers/ata/pata_oldpiix.c b/drivers/ata/pata_oldpiix.c index 98cdf50e4065..d77b2e1054ef 100644 --- a/drivers/ata/pata_oldpiix.c +++ b/drivers/ata/pata_oldpiix.c | |||
@@ -265,22 +265,10 @@ static struct pci_driver oldpiix_pci_driver = { | |||
265 | #endif | 265 | #endif |
266 | }; | 266 | }; |
267 | 267 | ||
268 | static int __init oldpiix_init(void) | 268 | module_pci_driver(oldpiix_pci_driver); |
269 | { | ||
270 | return pci_register_driver(&oldpiix_pci_driver); | ||
271 | } | ||
272 | |||
273 | static void __exit oldpiix_exit(void) | ||
274 | { | ||
275 | pci_unregister_driver(&oldpiix_pci_driver); | ||
276 | } | ||
277 | |||
278 | module_init(oldpiix_init); | ||
279 | module_exit(oldpiix_exit); | ||
280 | 269 | ||
281 | MODULE_AUTHOR("Alan Cox"); | 270 | MODULE_AUTHOR("Alan Cox"); |
282 | MODULE_DESCRIPTION("SCSI low-level driver for early PIIX series controllers"); | 271 | MODULE_DESCRIPTION("SCSI low-level driver for early PIIX series controllers"); |
283 | MODULE_LICENSE("GPL"); | 272 | MODULE_LICENSE("GPL"); |
284 | MODULE_DEVICE_TABLE(pci, oldpiix_pci_tbl); | 273 | MODULE_DEVICE_TABLE(pci, oldpiix_pci_tbl); |
285 | MODULE_VERSION(DRV_VERSION); | 274 | MODULE_VERSION(DRV_VERSION); |
286 | |||
diff --git a/drivers/ata/pata_opti.c b/drivers/ata/pata_opti.c index accc033faf77..4ea70cd22aee 100644 --- a/drivers/ata/pata_opti.c +++ b/drivers/ata/pata_opti.c | |||
@@ -191,22 +191,10 @@ static struct pci_driver opti_pci_driver = { | |||
191 | #endif | 191 | #endif |
192 | }; | 192 | }; |
193 | 193 | ||
194 | static int __init opti_init(void) | 194 | module_pci_driver(opti_pci_driver); |
195 | { | ||
196 | return pci_register_driver(&opti_pci_driver); | ||
197 | } | ||
198 | |||
199 | static void __exit opti_exit(void) | ||
200 | { | ||
201 | pci_unregister_driver(&opti_pci_driver); | ||
202 | } | ||
203 | |||
204 | 195 | ||
205 | MODULE_AUTHOR("Alan Cox"); | 196 | MODULE_AUTHOR("Alan Cox"); |
206 | MODULE_DESCRIPTION("low-level driver for Opti 621/621X"); | 197 | MODULE_DESCRIPTION("low-level driver for Opti 621/621X"); |
207 | MODULE_LICENSE("GPL"); | 198 | MODULE_LICENSE("GPL"); |
208 | MODULE_DEVICE_TABLE(pci, opti); | 199 | MODULE_DEVICE_TABLE(pci, opti); |
209 | MODULE_VERSION(DRV_VERSION); | 200 | MODULE_VERSION(DRV_VERSION); |
210 | |||
211 | module_init(opti_init); | ||
212 | module_exit(opti_exit); | ||
diff --git a/drivers/ata/pata_optidma.c b/drivers/ata/pata_optidma.c index 77cb91408632..78ede3fd1875 100644 --- a/drivers/ata/pata_optidma.c +++ b/drivers/ata/pata_optidma.c | |||
@@ -447,21 +447,10 @@ static struct pci_driver optidma_pci_driver = { | |||
447 | #endif | 447 | #endif |
448 | }; | 448 | }; |
449 | 449 | ||
450 | static int __init optidma_init(void) | 450 | module_pci_driver(optidma_pci_driver); |
451 | { | ||
452 | return pci_register_driver(&optidma_pci_driver); | ||
453 | } | ||
454 | |||
455 | static void __exit optidma_exit(void) | ||
456 | { | ||
457 | pci_unregister_driver(&optidma_pci_driver); | ||
458 | } | ||
459 | 451 | ||
460 | MODULE_AUTHOR("Alan Cox"); | 452 | MODULE_AUTHOR("Alan Cox"); |
461 | MODULE_DESCRIPTION("low-level driver for Opti Firestar/Firestar Plus"); | 453 | MODULE_DESCRIPTION("low-level driver for Opti Firestar/Firestar Plus"); |
462 | MODULE_LICENSE("GPL"); | 454 | MODULE_LICENSE("GPL"); |
463 | MODULE_DEVICE_TABLE(pci, optidma); | 455 | MODULE_DEVICE_TABLE(pci, optidma); |
464 | MODULE_VERSION(DRV_VERSION); | 456 | MODULE_VERSION(DRV_VERSION); |
465 | |||
466 | module_init(optidma_init); | ||
467 | module_exit(optidma_exit); | ||
diff --git a/drivers/ata/pata_pdc2027x.c b/drivers/ata/pata_pdc2027x.c index 7d63f24179c7..c9399c8688c5 100644 --- a/drivers/ata/pata_pdc2027x.c +++ b/drivers/ata/pata_pdc2027x.c | |||
@@ -784,21 +784,4 @@ static int pdc2027x_reinit_one(struct pci_dev *pdev) | |||
784 | } | 784 | } |
785 | #endif | 785 | #endif |
786 | 786 | ||
787 | /** | 787 | module_pci_driver(pdc2027x_pci_driver); |
788 | * pdc2027x_init - Called after this module is loaded into the kernel. | ||
789 | */ | ||
790 | static int __init pdc2027x_init(void) | ||
791 | { | ||
792 | return pci_register_driver(&pdc2027x_pci_driver); | ||
793 | } | ||
794 | |||
795 | /** | ||
796 | * pdc2027x_exit - Called before this module unloaded from the kernel | ||
797 | */ | ||
798 | static void __exit pdc2027x_exit(void) | ||
799 | { | ||
800 | pci_unregister_driver(&pdc2027x_pci_driver); | ||
801 | } | ||
802 | |||
803 | module_init(pdc2027x_init); | ||
804 | module_exit(pdc2027x_exit); | ||
diff --git a/drivers/ata/pata_pdc202xx_old.c b/drivers/ata/pata_pdc202xx_old.c index c2ed5868dda6..c34fc50070a6 100644 --- a/drivers/ata/pata_pdc202xx_old.c +++ b/drivers/ata/pata_pdc202xx_old.c | |||
@@ -384,21 +384,10 @@ static struct pci_driver pdc202xx_pci_driver = { | |||
384 | #endif | 384 | #endif |
385 | }; | 385 | }; |
386 | 386 | ||
387 | static int __init pdc202xx_init(void) | 387 | module_pci_driver(pdc202xx_pci_driver); |
388 | { | ||
389 | return pci_register_driver(&pdc202xx_pci_driver); | ||
390 | } | ||
391 | |||
392 | static void __exit pdc202xx_exit(void) | ||
393 | { | ||
394 | pci_unregister_driver(&pdc202xx_pci_driver); | ||
395 | } | ||
396 | 388 | ||
397 | MODULE_AUTHOR("Alan Cox"); | 389 | MODULE_AUTHOR("Alan Cox"); |
398 | MODULE_DESCRIPTION("low-level driver for Promise 2024x and 20262-20267"); | 390 | MODULE_DESCRIPTION("low-level driver for Promise 2024x and 20262-20267"); |
399 | MODULE_LICENSE("GPL"); | 391 | MODULE_LICENSE("GPL"); |
400 | MODULE_DEVICE_TABLE(pci, pdc202xx); | 392 | MODULE_DEVICE_TABLE(pci, pdc202xx); |
401 | MODULE_VERSION(DRV_VERSION); | 393 | MODULE_VERSION(DRV_VERSION); |
402 | |||
403 | module_init(pdc202xx_init); | ||
404 | module_exit(pdc202xx_exit); | ||
diff --git a/drivers/ata/pata_piccolo.c b/drivers/ata/pata_piccolo.c index cb01bf9496fe..2beb6b5045f8 100644 --- a/drivers/ata/pata_piccolo.c +++ b/drivers/ata/pata_piccolo.c | |||
@@ -117,24 +117,10 @@ static struct pci_driver ata_tosh_pci_driver = { | |||
117 | #endif | 117 | #endif |
118 | }; | 118 | }; |
119 | 119 | ||
120 | static int __init ata_tosh_init(void) | 120 | module_pci_driver(ata_tosh_pci_driver); |
121 | { | ||
122 | return pci_register_driver(&ata_tosh_pci_driver); | ||
123 | } | ||
124 | |||
125 | |||
126 | static void __exit ata_tosh_exit(void) | ||
127 | { | ||
128 | pci_unregister_driver(&ata_tosh_pci_driver); | ||
129 | } | ||
130 | |||
131 | 121 | ||
132 | MODULE_AUTHOR("Alan Cox"); | 122 | MODULE_AUTHOR("Alan Cox"); |
133 | MODULE_DESCRIPTION("Low level driver for Toshiba Piccolo ATA"); | 123 | MODULE_DESCRIPTION("Low level driver for Toshiba Piccolo ATA"); |
134 | MODULE_LICENSE("GPL"); | 124 | MODULE_LICENSE("GPL"); |
135 | MODULE_DEVICE_TABLE(pci, ata_tosh); | 125 | MODULE_DEVICE_TABLE(pci, ata_tosh); |
136 | MODULE_VERSION(DRV_VERSION); | 126 | MODULE_VERSION(DRV_VERSION); |
137 | |||
138 | module_init(ata_tosh_init); | ||
139 | module_exit(ata_tosh_exit); | ||
140 | |||
diff --git a/drivers/ata/pata_radisys.c b/drivers/ata/pata_radisys.c index b2d3a2bb4e60..f582ba180a7d 100644 --- a/drivers/ata/pata_radisys.c +++ b/drivers/ata/pata_radisys.c | |||
@@ -244,22 +244,10 @@ static struct pci_driver radisys_pci_driver = { | |||
244 | #endif | 244 | #endif |
245 | }; | 245 | }; |
246 | 246 | ||
247 | static int __init radisys_init(void) | 247 | module_pci_driver(radisys_pci_driver); |
248 | { | ||
249 | return pci_register_driver(&radisys_pci_driver); | ||
250 | } | ||
251 | |||
252 | static void __exit radisys_exit(void) | ||
253 | { | ||
254 | pci_unregister_driver(&radisys_pci_driver); | ||
255 | } | ||
256 | |||
257 | module_init(radisys_init); | ||
258 | module_exit(radisys_exit); | ||
259 | 248 | ||
260 | MODULE_AUTHOR("Alan Cox"); | 249 | MODULE_AUTHOR("Alan Cox"); |
261 | MODULE_DESCRIPTION("SCSI low-level driver for Radisys R82600 controllers"); | 250 | MODULE_DESCRIPTION("SCSI low-level driver for Radisys R82600 controllers"); |
262 | MODULE_LICENSE("GPL"); | 251 | MODULE_LICENSE("GPL"); |
263 | MODULE_DEVICE_TABLE(pci, radisys_pci_tbl); | 252 | MODULE_DEVICE_TABLE(pci, radisys_pci_tbl); |
264 | MODULE_VERSION(DRV_VERSION); | 253 | MODULE_VERSION(DRV_VERSION); |
265 | |||
diff --git a/drivers/ata/pata_rdc.c b/drivers/ata/pata_rdc.c index e6a2dd7809c1..32a3499e83e7 100644 --- a/drivers/ata/pata_rdc.c +++ b/drivers/ata/pata_rdc.c | |||
@@ -394,18 +394,7 @@ static struct pci_driver rdc_pci_driver = { | |||
394 | }; | 394 | }; |
395 | 395 | ||
396 | 396 | ||
397 | static int __init rdc_init(void) | 397 | module_pci_driver(rdc_pci_driver); |
398 | { | ||
399 | return pci_register_driver(&rdc_pci_driver); | ||
400 | } | ||
401 | |||
402 | static void __exit rdc_exit(void) | ||
403 | { | ||
404 | pci_unregister_driver(&rdc_pci_driver); | ||
405 | } | ||
406 | |||
407 | module_init(rdc_init); | ||
408 | module_exit(rdc_exit); | ||
409 | 398 | ||
410 | MODULE_AUTHOR("Alan Cox (based on ata_piix)"); | 399 | MODULE_AUTHOR("Alan Cox (based on ata_piix)"); |
411 | MODULE_DESCRIPTION("SCSI low-level driver for RDC PATA controllers"); | 400 | MODULE_DESCRIPTION("SCSI low-level driver for RDC PATA controllers"); |
diff --git a/drivers/ata/pata_rz1000.c b/drivers/ata/pata_rz1000.c index aca321e1e6a2..60f4de2dd47d 100644 --- a/drivers/ata/pata_rz1000.c +++ b/drivers/ata/pata_rz1000.c | |||
@@ -140,22 +140,10 @@ static struct pci_driver rz1000_pci_driver = { | |||
140 | #endif | 140 | #endif |
141 | }; | 141 | }; |
142 | 142 | ||
143 | static int __init rz1000_init(void) | 143 | module_pci_driver(rz1000_pci_driver); |
144 | { | ||
145 | return pci_register_driver(&rz1000_pci_driver); | ||
146 | } | ||
147 | |||
148 | static void __exit rz1000_exit(void) | ||
149 | { | ||
150 | pci_unregister_driver(&rz1000_pci_driver); | ||
151 | } | ||
152 | 144 | ||
153 | MODULE_AUTHOR("Alan Cox"); | 145 | MODULE_AUTHOR("Alan Cox"); |
154 | MODULE_DESCRIPTION("low-level driver for RZ1000 PCI ATA"); | 146 | MODULE_DESCRIPTION("low-level driver for RZ1000 PCI ATA"); |
155 | MODULE_LICENSE("GPL"); | 147 | MODULE_LICENSE("GPL"); |
156 | MODULE_DEVICE_TABLE(pci, pata_rz1000); | 148 | MODULE_DEVICE_TABLE(pci, pata_rz1000); |
157 | MODULE_VERSION(DRV_VERSION); | 149 | MODULE_VERSION(DRV_VERSION); |
158 | |||
159 | module_init(rz1000_init); | ||
160 | module_exit(rz1000_exit); | ||
161 | |||
diff --git a/drivers/ata/pata_sc1200.c b/drivers/ata/pata_sc1200.c index c0e603a84f7f..ce2f828c17b3 100644 --- a/drivers/ata/pata_sc1200.c +++ b/drivers/ata/pata_sc1200.c | |||
@@ -261,21 +261,10 @@ static struct pci_driver sc1200_pci_driver = { | |||
261 | #endif | 261 | #endif |
262 | }; | 262 | }; |
263 | 263 | ||
264 | static int __init sc1200_init(void) | 264 | module_pci_driver(sc1200_pci_driver); |
265 | { | ||
266 | return pci_register_driver(&sc1200_pci_driver); | ||
267 | } | ||
268 | |||
269 | static void __exit sc1200_exit(void) | ||
270 | { | ||
271 | pci_unregister_driver(&sc1200_pci_driver); | ||
272 | } | ||
273 | 265 | ||
274 | MODULE_AUTHOR("Alan Cox, Mark Lord"); | 266 | MODULE_AUTHOR("Alan Cox, Mark Lord"); |
275 | MODULE_DESCRIPTION("low-level driver for the NS/AMD SC1200"); | 267 | MODULE_DESCRIPTION("low-level driver for the NS/AMD SC1200"); |
276 | MODULE_LICENSE("GPL"); | 268 | MODULE_LICENSE("GPL"); |
277 | MODULE_DEVICE_TABLE(pci, sc1200); | 269 | MODULE_DEVICE_TABLE(pci, sc1200); |
278 | MODULE_VERSION(DRV_VERSION); | 270 | MODULE_VERSION(DRV_VERSION); |
279 | |||
280 | module_init(sc1200_init); | ||
281 | module_exit(sc1200_exit); | ||
diff --git a/drivers/ata/pata_scc.c b/drivers/ata/pata_scc.c index e265f835c95d..f35f15f4d83e 100644 --- a/drivers/ata/pata_scc.c +++ b/drivers/ata/pata_scc.c | |||
@@ -1103,26 +1103,7 @@ static struct pci_driver scc_pci_driver = { | |||
1103 | #endif | 1103 | #endif |
1104 | }; | 1104 | }; |
1105 | 1105 | ||
1106 | static int __init scc_init (void) | 1106 | module_pci_driver(scc_pci_driver); |
1107 | { | ||
1108 | int rc; | ||
1109 | |||
1110 | DPRINTK("pci_register_driver\n"); | ||
1111 | rc = pci_register_driver(&scc_pci_driver); | ||
1112 | if (rc) | ||
1113 | return rc; | ||
1114 | |||
1115 | DPRINTK("done\n"); | ||
1116 | return 0; | ||
1117 | } | ||
1118 | |||
1119 | static void __exit scc_exit (void) | ||
1120 | { | ||
1121 | pci_unregister_driver(&scc_pci_driver); | ||
1122 | } | ||
1123 | |||
1124 | module_init(scc_init); | ||
1125 | module_exit(scc_exit); | ||
1126 | 1107 | ||
1127 | MODULE_AUTHOR("Toshiba corp"); | 1108 | MODULE_AUTHOR("Toshiba corp"); |
1128 | MODULE_DESCRIPTION("SCSI low-level driver for Toshiba SCC PATA controller"); | 1109 | MODULE_DESCRIPTION("SCSI low-level driver for Toshiba SCC PATA controller"); |
diff --git a/drivers/ata/pata_sch.c b/drivers/ata/pata_sch.c index 7c78b9993627..db0d18cf1c2a 100644 --- a/drivers/ata/pata_sch.c +++ b/drivers/ata/pata_sch.c | |||
@@ -179,15 +179,4 @@ static int __devinit sch_init_one(struct pci_dev *pdev, | |||
179 | return ata_pci_bmdma_init_one(pdev, ppi, &sch_sht, NULL, 0); | 179 | return ata_pci_bmdma_init_one(pdev, ppi, &sch_sht, NULL, 0); |
180 | } | 180 | } |
181 | 181 | ||
182 | static int __init sch_init(void) | 182 | module_pci_driver(sch_pci_driver); |
183 | { | ||
184 | return pci_register_driver(&sch_pci_driver); | ||
185 | } | ||
186 | |||
187 | static void __exit sch_exit(void) | ||
188 | { | ||
189 | pci_unregister_driver(&sch_pci_driver); | ||
190 | } | ||
191 | |||
192 | module_init(sch_init); | ||
193 | module_exit(sch_exit); | ||
diff --git a/drivers/ata/pata_serverworks.c b/drivers/ata/pata_serverworks.c index 71eaf385e970..f3febbce6c46 100644 --- a/drivers/ata/pata_serverworks.c +++ b/drivers/ata/pata_serverworks.c | |||
@@ -475,21 +475,10 @@ static struct pci_driver serverworks_pci_driver = { | |||
475 | #endif | 475 | #endif |
476 | }; | 476 | }; |
477 | 477 | ||
478 | static int __init serverworks_init(void) | 478 | module_pci_driver(serverworks_pci_driver); |
479 | { | ||
480 | return pci_register_driver(&serverworks_pci_driver); | ||
481 | } | ||
482 | |||
483 | static void __exit serverworks_exit(void) | ||
484 | { | ||
485 | pci_unregister_driver(&serverworks_pci_driver); | ||
486 | } | ||
487 | 479 | ||
488 | MODULE_AUTHOR("Alan Cox"); | 480 | MODULE_AUTHOR("Alan Cox"); |
489 | MODULE_DESCRIPTION("low-level driver for Serverworks OSB4/CSB5/CSB6"); | 481 | MODULE_DESCRIPTION("low-level driver for Serverworks OSB4/CSB5/CSB6"); |
490 | MODULE_LICENSE("GPL"); | 482 | MODULE_LICENSE("GPL"); |
491 | MODULE_DEVICE_TABLE(pci, serverworks); | 483 | MODULE_DEVICE_TABLE(pci, serverworks); |
492 | MODULE_VERSION(DRV_VERSION); | 484 | MODULE_VERSION(DRV_VERSION); |
493 | |||
494 | module_init(serverworks_init); | ||
495 | module_exit(serverworks_exit); | ||
diff --git a/drivers/ata/pata_sil680.c b/drivers/ata/pata_sil680.c index b92eacf8dd3c..5cfdf94823d0 100644 --- a/drivers/ata/pata_sil680.c +++ b/drivers/ata/pata_sil680.c | |||
@@ -437,21 +437,10 @@ static struct pci_driver sil680_pci_driver = { | |||
437 | #endif | 437 | #endif |
438 | }; | 438 | }; |
439 | 439 | ||
440 | static int __init sil680_init(void) | 440 | module_pci_driver(sil680_pci_driver); |
441 | { | ||
442 | return pci_register_driver(&sil680_pci_driver); | ||
443 | } | ||
444 | |||
445 | static void __exit sil680_exit(void) | ||
446 | { | ||
447 | pci_unregister_driver(&sil680_pci_driver); | ||
448 | } | ||
449 | 441 | ||
450 | MODULE_AUTHOR("Alan Cox"); | 442 | MODULE_AUTHOR("Alan Cox"); |
451 | MODULE_DESCRIPTION("low-level driver for SI680 PATA"); | 443 | MODULE_DESCRIPTION("low-level driver for SI680 PATA"); |
452 | MODULE_LICENSE("GPL"); | 444 | MODULE_LICENSE("GPL"); |
453 | MODULE_DEVICE_TABLE(pci, sil680); | 445 | MODULE_DEVICE_TABLE(pci, sil680); |
454 | MODULE_VERSION(DRV_VERSION); | 446 | MODULE_VERSION(DRV_VERSION); |
455 | |||
456 | module_init(sil680_init); | ||
457 | module_exit(sil680_exit); | ||
diff --git a/drivers/ata/pata_sis.c b/drivers/ata/pata_sis.c index b0edc7de7b2d..2d5ac1361262 100644 --- a/drivers/ata/pata_sis.c +++ b/drivers/ata/pata_sis.c | |||
@@ -906,22 +906,10 @@ static struct pci_driver sis_pci_driver = { | |||
906 | #endif | 906 | #endif |
907 | }; | 907 | }; |
908 | 908 | ||
909 | static int __init sis_init(void) | 909 | module_pci_driver(sis_pci_driver); |
910 | { | ||
911 | return pci_register_driver(&sis_pci_driver); | ||
912 | } | ||
913 | |||
914 | static void __exit sis_exit(void) | ||
915 | { | ||
916 | pci_unregister_driver(&sis_pci_driver); | ||
917 | } | ||
918 | |||
919 | module_init(sis_init); | ||
920 | module_exit(sis_exit); | ||
921 | 910 | ||
922 | MODULE_AUTHOR("Alan Cox"); | 911 | MODULE_AUTHOR("Alan Cox"); |
923 | MODULE_DESCRIPTION("SCSI low-level driver for SiS ATA"); | 912 | MODULE_DESCRIPTION("SCSI low-level driver for SiS ATA"); |
924 | MODULE_LICENSE("GPL"); | 913 | MODULE_LICENSE("GPL"); |
925 | MODULE_DEVICE_TABLE(pci, sis_pci_tbl); | 914 | MODULE_DEVICE_TABLE(pci, sis_pci_tbl); |
926 | MODULE_VERSION(DRV_VERSION); | 915 | MODULE_VERSION(DRV_VERSION); |
927 | |||
diff --git a/drivers/ata/pata_sl82c105.c b/drivers/ata/pata_sl82c105.c index 24cf200dd1c9..738e000107d6 100644 --- a/drivers/ata/pata_sl82c105.c +++ b/drivers/ata/pata_sl82c105.c | |||
@@ -372,21 +372,10 @@ static struct pci_driver sl82c105_pci_driver = { | |||
372 | #endif | 372 | #endif |
373 | }; | 373 | }; |
374 | 374 | ||
375 | static int __init sl82c105_init(void) | 375 | module_pci_driver(sl82c105_pci_driver); |
376 | { | ||
377 | return pci_register_driver(&sl82c105_pci_driver); | ||
378 | } | ||
379 | |||
380 | static void __exit sl82c105_exit(void) | ||
381 | { | ||
382 | pci_unregister_driver(&sl82c105_pci_driver); | ||
383 | } | ||
384 | 376 | ||
385 | MODULE_AUTHOR("Alan Cox"); | 377 | MODULE_AUTHOR("Alan Cox"); |
386 | MODULE_DESCRIPTION("low-level driver for Sl82c105"); | 378 | MODULE_DESCRIPTION("low-level driver for Sl82c105"); |
387 | MODULE_LICENSE("GPL"); | 379 | MODULE_LICENSE("GPL"); |
388 | MODULE_DEVICE_TABLE(pci, sl82c105); | 380 | MODULE_DEVICE_TABLE(pci, sl82c105); |
389 | MODULE_VERSION(DRV_VERSION); | 381 | MODULE_VERSION(DRV_VERSION); |
390 | |||
391 | module_init(sl82c105_init); | ||
392 | module_exit(sl82c105_exit); | ||
diff --git a/drivers/ata/pata_triflex.c b/drivers/ata/pata_triflex.c index 28da1c6becf1..c8e589d91231 100644 --- a/drivers/ata/pata_triflex.c +++ b/drivers/ata/pata_triflex.c | |||
@@ -240,21 +240,10 @@ static struct pci_driver triflex_pci_driver = { | |||
240 | #endif | 240 | #endif |
241 | }; | 241 | }; |
242 | 242 | ||
243 | static int __init triflex_init(void) | 243 | module_pci_driver(triflex_pci_driver); |
244 | { | ||
245 | return pci_register_driver(&triflex_pci_driver); | ||
246 | } | ||
247 | |||
248 | static void __exit triflex_exit(void) | ||
249 | { | ||
250 | pci_unregister_driver(&triflex_pci_driver); | ||
251 | } | ||
252 | 244 | ||
253 | MODULE_AUTHOR("Alan Cox"); | 245 | MODULE_AUTHOR("Alan Cox"); |
254 | MODULE_DESCRIPTION("low-level driver for Compaq Triflex"); | 246 | MODULE_DESCRIPTION("low-level driver for Compaq Triflex"); |
255 | MODULE_LICENSE("GPL"); | 247 | MODULE_LICENSE("GPL"); |
256 | MODULE_DEVICE_TABLE(pci, triflex); | 248 | MODULE_DEVICE_TABLE(pci, triflex); |
257 | MODULE_VERSION(DRV_VERSION); | 249 | MODULE_VERSION(DRV_VERSION); |
258 | |||
259 | module_init(triflex_init); | ||
260 | module_exit(triflex_exit); | ||
diff --git a/drivers/ata/pata_via.c b/drivers/ata/pata_via.c index 255f336cd7ea..8d2a9fdf6b8d 100644 --- a/drivers/ata/pata_via.c +++ b/drivers/ata/pata_via.c | |||
@@ -711,21 +711,10 @@ static struct pci_driver via_pci_driver = { | |||
711 | #endif | 711 | #endif |
712 | }; | 712 | }; |
713 | 713 | ||
714 | static int __init via_init(void) | 714 | module_pci_driver(via_pci_driver); |
715 | { | ||
716 | return pci_register_driver(&via_pci_driver); | ||
717 | } | ||
718 | |||
719 | static void __exit via_exit(void) | ||
720 | { | ||
721 | pci_unregister_driver(&via_pci_driver); | ||
722 | } | ||
723 | 715 | ||
724 | MODULE_AUTHOR("Alan Cox"); | 716 | MODULE_AUTHOR("Alan Cox"); |
725 | MODULE_DESCRIPTION("low-level driver for VIA PATA"); | 717 | MODULE_DESCRIPTION("low-level driver for VIA PATA"); |
726 | MODULE_LICENSE("GPL"); | 718 | MODULE_LICENSE("GPL"); |
727 | MODULE_DEVICE_TABLE(pci, via); | 719 | MODULE_DEVICE_TABLE(pci, via); |
728 | MODULE_VERSION(DRV_VERSION); | 720 | MODULE_VERSION(DRV_VERSION); |
729 | |||
730 | module_init(via_init); | ||
731 | module_exit(via_exit); | ||
diff --git a/drivers/ata/pdc_adma.c b/drivers/ata/pdc_adma.c index 04911d52f59d..505333340ad5 100644 --- a/drivers/ata/pdc_adma.c +++ b/drivers/ata/pdc_adma.c | |||
@@ -660,21 +660,10 @@ static int adma_ata_init_one(struct pci_dev *pdev, | |||
660 | &adma_ata_sht); | 660 | &adma_ata_sht); |
661 | } | 661 | } |
662 | 662 | ||
663 | static int __init adma_ata_init(void) | 663 | module_pci_driver(adma_ata_pci_driver); |
664 | { | ||
665 | return pci_register_driver(&adma_ata_pci_driver); | ||
666 | } | ||
667 | |||
668 | static void __exit adma_ata_exit(void) | ||
669 | { | ||
670 | pci_unregister_driver(&adma_ata_pci_driver); | ||
671 | } | ||
672 | 664 | ||
673 | MODULE_AUTHOR("Mark Lord"); | 665 | MODULE_AUTHOR("Mark Lord"); |
674 | MODULE_DESCRIPTION("Pacific Digital Corporation ADMA low-level driver"); | 666 | MODULE_DESCRIPTION("Pacific Digital Corporation ADMA low-level driver"); |
675 | MODULE_LICENSE("GPL"); | 667 | MODULE_LICENSE("GPL"); |
676 | MODULE_DEVICE_TABLE(pci, adma_ata_pci_tbl); | 668 | MODULE_DEVICE_TABLE(pci, adma_ata_pci_tbl); |
677 | MODULE_VERSION(DRV_VERSION); | 669 | MODULE_VERSION(DRV_VERSION); |
678 | |||
679 | module_init(adma_ata_init); | ||
680 | module_exit(adma_ata_exit); | ||
diff --git a/drivers/ata/sata_inic162x.c b/drivers/ata/sata_inic162x.c index 5c7d70c03bf0..dc35f4d42b8b 100644 --- a/drivers/ata/sata_inic162x.c +++ b/drivers/ata/sata_inic162x.c | |||
@@ -894,21 +894,10 @@ static struct pci_driver inic_pci_driver = { | |||
894 | .remove = ata_pci_remove_one, | 894 | .remove = ata_pci_remove_one, |
895 | }; | 895 | }; |
896 | 896 | ||
897 | static int __init inic_init(void) | 897 | module_pci_driver(inic_pci_driver); |
898 | { | ||
899 | return pci_register_driver(&inic_pci_driver); | ||
900 | } | ||
901 | |||
902 | static void __exit inic_exit(void) | ||
903 | { | ||
904 | pci_unregister_driver(&inic_pci_driver); | ||
905 | } | ||
906 | 898 | ||
907 | MODULE_AUTHOR("Tejun Heo"); | 899 | MODULE_AUTHOR("Tejun Heo"); |
908 | MODULE_DESCRIPTION("low-level driver for Initio 162x SATA"); | 900 | MODULE_DESCRIPTION("low-level driver for Initio 162x SATA"); |
909 | MODULE_LICENSE("GPL v2"); | 901 | MODULE_LICENSE("GPL v2"); |
910 | MODULE_DEVICE_TABLE(pci, inic_pci_tbl); | 902 | MODULE_DEVICE_TABLE(pci, inic_pci_tbl); |
911 | MODULE_VERSION(DRV_VERSION); | 903 | MODULE_VERSION(DRV_VERSION); |
912 | |||
913 | module_init(inic_init); | ||
914 | module_exit(inic_exit); | ||
diff --git a/drivers/ata/sata_nv.c b/drivers/ata/sata_nv.c index 55d6179dde58..85ee4993ca74 100644 --- a/drivers/ata/sata_nv.c +++ b/drivers/ata/sata_nv.c | |||
@@ -2510,22 +2510,11 @@ static void nv_adma_host_stop(struct ata_host *host) | |||
2510 | nv_ck804_host_stop(host); | 2510 | nv_ck804_host_stop(host); |
2511 | } | 2511 | } |
2512 | 2512 | ||
2513 | static int __init nv_init(void) | 2513 | module_pci_driver(nv_pci_driver); |
2514 | { | ||
2515 | return pci_register_driver(&nv_pci_driver); | ||
2516 | } | ||
2517 | |||
2518 | static void __exit nv_exit(void) | ||
2519 | { | ||
2520 | pci_unregister_driver(&nv_pci_driver); | ||
2521 | } | ||
2522 | 2514 | ||
2523 | module_init(nv_init); | ||
2524 | module_exit(nv_exit); | ||
2525 | module_param_named(adma, adma_enabled, bool, 0444); | 2515 | module_param_named(adma, adma_enabled, bool, 0444); |
2526 | MODULE_PARM_DESC(adma, "Enable use of ADMA (Default: false)"); | 2516 | MODULE_PARM_DESC(adma, "Enable use of ADMA (Default: false)"); |
2527 | module_param_named(swncq, swncq_enabled, bool, 0444); | 2517 | module_param_named(swncq, swncq_enabled, bool, 0444); |
2528 | MODULE_PARM_DESC(swncq, "Enable use of SWNCQ (Default: true)"); | 2518 | MODULE_PARM_DESC(swncq, "Enable use of SWNCQ (Default: true)"); |
2529 | module_param_named(msi, msi_enabled, bool, 0444); | 2519 | module_param_named(msi, msi_enabled, bool, 0444); |
2530 | MODULE_PARM_DESC(msi, "Enable use of MSI (Default: false)"); | 2520 | MODULE_PARM_DESC(msi, "Enable use of MSI (Default: false)"); |
2531 | |||
diff --git a/drivers/ata/sata_promise.c b/drivers/ata/sata_promise.c index 000fcc99e01d..489c81768321 100644 --- a/drivers/ata/sata_promise.c +++ b/drivers/ata/sata_promise.c | |||
@@ -1249,21 +1249,10 @@ static int pdc_ata_init_one(struct pci_dev *pdev, | |||
1249 | &pdc_ata_sht); | 1249 | &pdc_ata_sht); |
1250 | } | 1250 | } |
1251 | 1251 | ||
1252 | static int __init pdc_ata_init(void) | 1252 | module_pci_driver(pdc_ata_pci_driver); |
1253 | { | ||
1254 | return pci_register_driver(&pdc_ata_pci_driver); | ||
1255 | } | ||
1256 | |||
1257 | static void __exit pdc_ata_exit(void) | ||
1258 | { | ||
1259 | pci_unregister_driver(&pdc_ata_pci_driver); | ||
1260 | } | ||
1261 | 1253 | ||
1262 | MODULE_AUTHOR("Jeff Garzik"); | 1254 | MODULE_AUTHOR("Jeff Garzik"); |
1263 | MODULE_DESCRIPTION("Promise ATA TX2/TX4/TX4000 low-level driver"); | 1255 | MODULE_DESCRIPTION("Promise ATA TX2/TX4/TX4000 low-level driver"); |
1264 | MODULE_LICENSE("GPL"); | 1256 | MODULE_LICENSE("GPL"); |
1265 | MODULE_DEVICE_TABLE(pci, pdc_ata_pci_tbl); | 1257 | MODULE_DEVICE_TABLE(pci, pdc_ata_pci_tbl); |
1266 | MODULE_VERSION(DRV_VERSION); | 1258 | MODULE_VERSION(DRV_VERSION); |
1267 | |||
1268 | module_init(pdc_ata_init); | ||
1269 | module_exit(pdc_ata_exit); | ||
diff --git a/drivers/ata/sata_qstor.c b/drivers/ata/sata_qstor.c index 9d1a47bb21b3..3b0dd57984e1 100644 --- a/drivers/ata/sata_qstor.c +++ b/drivers/ata/sata_qstor.c | |||
@@ -635,21 +635,10 @@ static int qs_ata_init_one(struct pci_dev *pdev, | |||
635 | &qs_ata_sht); | 635 | &qs_ata_sht); |
636 | } | 636 | } |
637 | 637 | ||
638 | static int __init qs_ata_init(void) | 638 | module_pci_driver(qs_ata_pci_driver); |
639 | { | ||
640 | return pci_register_driver(&qs_ata_pci_driver); | ||
641 | } | ||
642 | |||
643 | static void __exit qs_ata_exit(void) | ||
644 | { | ||
645 | pci_unregister_driver(&qs_ata_pci_driver); | ||
646 | } | ||
647 | 639 | ||
648 | MODULE_AUTHOR("Mark Lord"); | 640 | MODULE_AUTHOR("Mark Lord"); |
649 | MODULE_DESCRIPTION("Pacific Digital Corporation QStor SATA low-level driver"); | 641 | MODULE_DESCRIPTION("Pacific Digital Corporation QStor SATA low-level driver"); |
650 | MODULE_LICENSE("GPL"); | 642 | MODULE_LICENSE("GPL"); |
651 | MODULE_DEVICE_TABLE(pci, qs_ata_pci_tbl); | 643 | MODULE_DEVICE_TABLE(pci, qs_ata_pci_tbl); |
652 | MODULE_VERSION(DRV_VERSION); | 644 | MODULE_VERSION(DRV_VERSION); |
653 | |||
654 | module_init(qs_ata_init); | ||
655 | module_exit(qs_ata_exit); | ||
diff --git a/drivers/ata/sata_sil.c b/drivers/ata/sata_sil.c index 9dfb40b8c2c9..a7b31672c4b7 100644 --- a/drivers/ata/sata_sil.c +++ b/drivers/ata/sata_sil.c | |||
@@ -819,16 +819,4 @@ static int sil_pci_device_resume(struct pci_dev *pdev) | |||
819 | } | 819 | } |
820 | #endif | 820 | #endif |
821 | 821 | ||
822 | static int __init sil_init(void) | 822 | module_pci_driver(sil_pci_driver); |
823 | { | ||
824 | return pci_register_driver(&sil_pci_driver); | ||
825 | } | ||
826 | |||
827 | static void __exit sil_exit(void) | ||
828 | { | ||
829 | pci_unregister_driver(&sil_pci_driver); | ||
830 | } | ||
831 | |||
832 | |||
833 | module_init(sil_init); | ||
834 | module_exit(sil_exit); | ||
diff --git a/drivers/ata/sata_sil24.c b/drivers/ata/sata_sil24.c index e7e610aa9a7a..a5f2a563a26a 100644 --- a/drivers/ata/sata_sil24.c +++ b/drivers/ata/sata_sil24.c | |||
@@ -1382,20 +1382,9 @@ static int sil24_port_resume(struct ata_port *ap) | |||
1382 | } | 1382 | } |
1383 | #endif | 1383 | #endif |
1384 | 1384 | ||
1385 | static int __init sil24_init(void) | 1385 | module_pci_driver(sil24_pci_driver); |
1386 | { | ||
1387 | return pci_register_driver(&sil24_pci_driver); | ||
1388 | } | ||
1389 | |||
1390 | static void __exit sil24_exit(void) | ||
1391 | { | ||
1392 | pci_unregister_driver(&sil24_pci_driver); | ||
1393 | } | ||
1394 | 1386 | ||
1395 | MODULE_AUTHOR("Tejun Heo"); | 1387 | MODULE_AUTHOR("Tejun Heo"); |
1396 | MODULE_DESCRIPTION("Silicon Image 3124/3132 SATA low-level driver"); | 1388 | MODULE_DESCRIPTION("Silicon Image 3124/3132 SATA low-level driver"); |
1397 | MODULE_LICENSE("GPL"); | 1389 | MODULE_LICENSE("GPL"); |
1398 | MODULE_DEVICE_TABLE(pci, sil24_pci_tbl); | 1390 | MODULE_DEVICE_TABLE(pci, sil24_pci_tbl); |
1399 | |||
1400 | module_init(sil24_init); | ||
1401 | module_exit(sil24_exit); | ||
diff --git a/drivers/ata/sata_sis.c b/drivers/ata/sata_sis.c index 95ec435f0eb4..fe3ca0989b14 100644 --- a/drivers/ata/sata_sis.c +++ b/drivers/ata/sata_sis.c | |||
@@ -308,15 +308,4 @@ static int sis_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
308 | IRQF_SHARED, &sis_sht); | 308 | IRQF_SHARED, &sis_sht); |
309 | } | 309 | } |
310 | 310 | ||
311 | static int __init sis_init(void) | 311 | module_pci_driver(sis_pci_driver); |
312 | { | ||
313 | return pci_register_driver(&sis_pci_driver); | ||
314 | } | ||
315 | |||
316 | static void __exit sis_exit(void) | ||
317 | { | ||
318 | pci_unregister_driver(&sis_pci_driver); | ||
319 | } | ||
320 | |||
321 | module_init(sis_init); | ||
322 | module_exit(sis_exit); | ||
diff --git a/drivers/ata/sata_svw.c b/drivers/ata/sata_svw.c index c646118943ff..44a4256533e1 100644 --- a/drivers/ata/sata_svw.c +++ b/drivers/ata/sata_svw.c | |||
@@ -525,21 +525,10 @@ static struct pci_driver k2_sata_pci_driver = { | |||
525 | .remove = ata_pci_remove_one, | 525 | .remove = ata_pci_remove_one, |
526 | }; | 526 | }; |
527 | 527 | ||
528 | static int __init k2_sata_init(void) | 528 | module_pci_driver(k2_sata_pci_driver); |
529 | { | ||
530 | return pci_register_driver(&k2_sata_pci_driver); | ||
531 | } | ||
532 | |||
533 | static void __exit k2_sata_exit(void) | ||
534 | { | ||
535 | pci_unregister_driver(&k2_sata_pci_driver); | ||
536 | } | ||
537 | 529 | ||
538 | MODULE_AUTHOR("Benjamin Herrenschmidt"); | 530 | MODULE_AUTHOR("Benjamin Herrenschmidt"); |
539 | MODULE_DESCRIPTION("low-level driver for K2 SATA controller"); | 531 | MODULE_DESCRIPTION("low-level driver for K2 SATA controller"); |
540 | MODULE_LICENSE("GPL"); | 532 | MODULE_LICENSE("GPL"); |
541 | MODULE_DEVICE_TABLE(pci, k2_sata_pci_tbl); | 533 | MODULE_DEVICE_TABLE(pci, k2_sata_pci_tbl); |
542 | MODULE_VERSION(DRV_VERSION); | 534 | MODULE_VERSION(DRV_VERSION); |
543 | |||
544 | module_init(k2_sata_init); | ||
545 | module_exit(k2_sata_exit); | ||
diff --git a/drivers/ata/sata_sx4.c b/drivers/ata/sata_sx4.c index cdaebbe3d184..122605593166 100644 --- a/drivers/ata/sata_sx4.c +++ b/drivers/ata/sata_sx4.c | |||
@@ -1498,24 +1498,10 @@ static int pdc_sata_init_one(struct pci_dev *pdev, | |||
1498 | IRQF_SHARED, &pdc_sata_sht); | 1498 | IRQF_SHARED, &pdc_sata_sht); |
1499 | } | 1499 | } |
1500 | 1500 | ||
1501 | 1501 | module_pci_driver(pdc_sata_pci_driver); | |
1502 | static int __init pdc_sata_init(void) | ||
1503 | { | ||
1504 | return pci_register_driver(&pdc_sata_pci_driver); | ||
1505 | } | ||
1506 | |||
1507 | |||
1508 | static void __exit pdc_sata_exit(void) | ||
1509 | { | ||
1510 | pci_unregister_driver(&pdc_sata_pci_driver); | ||
1511 | } | ||
1512 | |||
1513 | 1502 | ||
1514 | MODULE_AUTHOR("Jeff Garzik"); | 1503 | MODULE_AUTHOR("Jeff Garzik"); |
1515 | MODULE_DESCRIPTION("Promise SATA low-level driver"); | 1504 | MODULE_DESCRIPTION("Promise SATA low-level driver"); |
1516 | MODULE_LICENSE("GPL"); | 1505 | MODULE_LICENSE("GPL"); |
1517 | MODULE_DEVICE_TABLE(pci, pdc_sata_pci_tbl); | 1506 | MODULE_DEVICE_TABLE(pci, pdc_sata_pci_tbl); |
1518 | MODULE_VERSION(DRV_VERSION); | 1507 | MODULE_VERSION(DRV_VERSION); |
1519 | |||
1520 | module_init(pdc_sata_init); | ||
1521 | module_exit(pdc_sata_exit); | ||
diff --git a/drivers/ata/sata_uli.c b/drivers/ata/sata_uli.c index b54ebfcdda32..6d6489118873 100644 --- a/drivers/ata/sata_uli.c +++ b/drivers/ata/sata_uli.c | |||
@@ -243,16 +243,4 @@ static int uli_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
243 | IRQF_SHARED, &uli_sht); | 243 | IRQF_SHARED, &uli_sht); |
244 | } | 244 | } |
245 | 245 | ||
246 | static int __init uli_init(void) | 246 | module_pci_driver(uli_pci_driver); |
247 | { | ||
248 | return pci_register_driver(&uli_pci_driver); | ||
249 | } | ||
250 | |||
251 | static void __exit uli_exit(void) | ||
252 | { | ||
253 | pci_unregister_driver(&uli_pci_driver); | ||
254 | } | ||
255 | |||
256 | |||
257 | module_init(uli_init); | ||
258 | module_exit(uli_exit); | ||
diff --git a/drivers/ata/sata_via.c b/drivers/ata/sata_via.c index f93e43b0ccd8..5913ea9d57b2 100644 --- a/drivers/ata/sata_via.c +++ b/drivers/ata/sata_via.c | |||
@@ -655,15 +655,4 @@ static int svia_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
655 | IRQF_SHARED, &svia_sht); | 655 | IRQF_SHARED, &svia_sht); |
656 | } | 656 | } |
657 | 657 | ||
658 | static int __init svia_init(void) | 658 | module_pci_driver(svia_pci_driver); |
659 | { | ||
660 | return pci_register_driver(&svia_pci_driver); | ||
661 | } | ||
662 | |||
663 | static void __exit svia_exit(void) | ||
664 | { | ||
665 | pci_unregister_driver(&svia_pci_driver); | ||
666 | } | ||
667 | |||
668 | module_init(svia_init); | ||
669 | module_exit(svia_exit); | ||
diff --git a/drivers/ata/sata_vsc.c b/drivers/ata/sata_vsc.c index 6135a5288695..e8cf88ba145d 100644 --- a/drivers/ata/sata_vsc.c +++ b/drivers/ata/sata_vsc.c | |||
@@ -436,21 +436,10 @@ static struct pci_driver vsc_sata_pci_driver = { | |||
436 | .remove = ata_pci_remove_one, | 436 | .remove = ata_pci_remove_one, |
437 | }; | 437 | }; |
438 | 438 | ||
439 | static int __init vsc_sata_init(void) | 439 | module_pci_driver(vsc_sata_pci_driver); |
440 | { | ||
441 | return pci_register_driver(&vsc_sata_pci_driver); | ||
442 | } | ||
443 | |||
444 | static void __exit vsc_sata_exit(void) | ||
445 | { | ||
446 | pci_unregister_driver(&vsc_sata_pci_driver); | ||
447 | } | ||
448 | 440 | ||
449 | MODULE_AUTHOR("Jeremy Higdon"); | 441 | MODULE_AUTHOR("Jeremy Higdon"); |
450 | MODULE_DESCRIPTION("low-level driver for Vitesse VSC7174 SATA controller"); | 442 | MODULE_DESCRIPTION("low-level driver for Vitesse VSC7174 SATA controller"); |
451 | MODULE_LICENSE("GPL"); | 443 | MODULE_LICENSE("GPL"); |
452 | MODULE_DEVICE_TABLE(pci, vsc_sata_pci_tbl); | 444 | MODULE_DEVICE_TABLE(pci, vsc_sata_pci_tbl); |
453 | MODULE_VERSION(DRV_VERSION); | 445 | MODULE_VERSION(DRV_VERSION); |
454 | |||
455 | module_init(vsc_sata_init); | ||
456 | module_exit(vsc_sata_exit); | ||