Commit 2fc75da0 authored by Axel Lin's avatar Axel Lin Committed by Jeff Garzik

ata: use module_pci_driver

This patch converts the drivers in drivers/ata/* to use module_pci_driver()
macro which makes the code smaller and a bit simpler.
Signed-off-by: default avatarAxel Lin <axel.lin@gmail.com>
Cc: Alan Cox <alan@linux.intel.com>
Cc: Jeff Garzik <jgarzik@pobox.com>
Cc: Mikael Pettersson <mikpe@it.uu.se>
Cc: Mark Lord <kernel@teksavvy.com>
Cc: Jeremy Higdon <jeremy@sgi.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
parent b08f5bc4
...@@ -503,21 +503,10 @@ static int acard_ahci_init_one(struct pci_dev *pdev, const struct pci_device_id ...@@ -503,21 +503,10 @@ static int acard_ahci_init_one(struct pci_dev *pdev, const struct pci_device_id
&acard_ahci_sht); &acard_ahci_sht);
} }
static int __init acard_ahci_init(void) module_pci_driver(acard_ahci_pci_driver);
{
return pci_register_driver(&acard_ahci_pci_driver);
}
static void __exit acard_ahci_exit(void)
{
pci_unregister_driver(&acard_ahci_pci_driver);
}
MODULE_AUTHOR("Jeff Garzik"); MODULE_AUTHOR("Jeff Garzik");
MODULE_DESCRIPTION("ACard AHCI SATA low-level driver"); MODULE_DESCRIPTION("ACard AHCI SATA low-level driver");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_DEVICE_TABLE(pci, acard_ahci_pci_tbl); MODULE_DEVICE_TABLE(pci, acard_ahci_pci_tbl);
MODULE_VERSION(DRV_VERSION); MODULE_VERSION(DRV_VERSION);
module_init(acard_ahci_init);
module_exit(acard_ahci_exit);
...@@ -1249,22 +1249,10 @@ static int ahci_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) ...@@ -1249,22 +1249,10 @@ static int ahci_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
&ahci_sht); &ahci_sht);
} }
static int __init ahci_init(void) module_pci_driver(ahci_pci_driver);
{
return pci_register_driver(&ahci_pci_driver);
}
static void __exit ahci_exit(void)
{
pci_unregister_driver(&ahci_pci_driver);
}
MODULE_AUTHOR("Jeff Garzik"); MODULE_AUTHOR("Jeff Garzik");
MODULE_DESCRIPTION("AHCI SATA low-level driver"); MODULE_DESCRIPTION("AHCI SATA low-level driver");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_DEVICE_TABLE(pci, ahci_pci_tbl); MODULE_DEVICE_TABLE(pci, ahci_pci_tbl);
MODULE_VERSION(DRV_VERSION); MODULE_VERSION(DRV_VERSION);
module_init(ahci_init);
module_exit(ahci_exit);
...@@ -255,17 +255,7 @@ static struct pci_driver ata_generic_pci_driver = { ...@@ -255,17 +255,7 @@ static struct pci_driver ata_generic_pci_driver = {
#endif #endif
}; };
static int __init ata_generic_init(void) module_pci_driver(ata_generic_pci_driver);
{
return pci_register_driver(&ata_generic_pci_driver);
}
static void __exit ata_generic_exit(void)
{
pci_unregister_driver(&ata_generic_pci_driver);
}
MODULE_AUTHOR("Alan Cox"); MODULE_AUTHOR("Alan Cox");
MODULE_DESCRIPTION("low-level driver for generic ATA"); MODULE_DESCRIPTION("low-level driver for generic ATA");
...@@ -273,7 +263,4 @@ MODULE_LICENSE("GPL"); ...@@ -273,7 +263,4 @@ MODULE_LICENSE("GPL");
MODULE_DEVICE_TABLE(pci, ata_generic); MODULE_DEVICE_TABLE(pci, ata_generic);
MODULE_VERSION(DRV_VERSION); MODULE_VERSION(DRV_VERSION);
module_init(ata_generic_init);
module_exit(ata_generic_exit);
module_param(all_generic_ide, int, 0); module_param(all_generic_ide, int, 0);
...@@ -273,22 +273,10 @@ static struct pci_driver pacpi_pci_driver = { ...@@ -273,22 +273,10 @@ static struct pci_driver pacpi_pci_driver = {
#endif #endif
}; };
static int __init pacpi_init(void) module_pci_driver(pacpi_pci_driver);
{
return pci_register_driver(&pacpi_pci_driver);
}
static void __exit pacpi_exit(void)
{
pci_unregister_driver(&pacpi_pci_driver);
}
module_init(pacpi_init);
module_exit(pacpi_exit);
MODULE_AUTHOR("Alan Cox"); MODULE_AUTHOR("Alan Cox");
MODULE_DESCRIPTION("SCSI low-level driver for ATA in ACPI mode"); MODULE_DESCRIPTION("SCSI low-level driver for ATA in ACPI mode");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_DEVICE_TABLE(pci, pacpi_pci_tbl); MODULE_DEVICE_TABLE(pci, pacpi_pci_tbl);
MODULE_VERSION(DRV_VERSION); MODULE_VERSION(DRV_VERSION);
...@@ -632,21 +632,10 @@ static struct pci_driver amd_pci_driver = { ...@@ -632,21 +632,10 @@ static struct pci_driver amd_pci_driver = {
#endif #endif
}; };
static int __init amd_init(void) module_pci_driver(amd_pci_driver);
{
return pci_register_driver(&amd_pci_driver);
}
static void __exit amd_exit(void)
{
pci_unregister_driver(&amd_pci_driver);
}
MODULE_AUTHOR("Alan Cox"); MODULE_AUTHOR("Alan Cox");
MODULE_DESCRIPTION("low-level driver for AMD and Nvidia PATA IDE"); MODULE_DESCRIPTION("low-level driver for AMD and Nvidia PATA IDE");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_DEVICE_TABLE(pci, amd); MODULE_DEVICE_TABLE(pci, amd);
MODULE_VERSION(DRV_VERSION); MODULE_VERSION(DRV_VERSION);
module_init(amd_init);
module_exit(amd_exit);
...@@ -451,18 +451,7 @@ static struct pci_driver artop_pci_driver = { ...@@ -451,18 +451,7 @@ static struct pci_driver artop_pci_driver = {
#endif #endif
}; };
static int __init artop_init(void) module_pci_driver(artop_pci_driver);
{
return pci_register_driver(&artop_pci_driver);
}
static void __exit artop_exit(void)
{
pci_unregister_driver(&artop_pci_driver);
}
module_init(artop_init);
module_exit(artop_exit);
MODULE_AUTHOR("Alan Cox, Bartlomiej Zolnierkiewicz"); MODULE_AUTHOR("Alan Cox, Bartlomiej Zolnierkiewicz");
MODULE_DESCRIPTION("SCSI low-level driver for ARTOP PATA"); MODULE_DESCRIPTION("SCSI low-level driver for ARTOP PATA");
......
...@@ -289,22 +289,10 @@ static struct pci_driver atiixp_pci_driver = { ...@@ -289,22 +289,10 @@ static struct pci_driver atiixp_pci_driver = {
#endif #endif
}; };
static int __init atiixp_init(void) module_pci_driver(atiixp_pci_driver);
{
return pci_register_driver(&atiixp_pci_driver);
}
static void __exit atiixp_exit(void)
{
pci_unregister_driver(&atiixp_pci_driver);
}
MODULE_AUTHOR("Alan Cox"); MODULE_AUTHOR("Alan Cox");
MODULE_DESCRIPTION("low-level driver for ATI IXP200/300/400"); MODULE_DESCRIPTION("low-level driver for ATI IXP200/300/400");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_DEVICE_TABLE(pci, atiixp); MODULE_DEVICE_TABLE(pci, atiixp);
MODULE_VERSION(DRV_VERSION); MODULE_VERSION(DRV_VERSION);
module_init(atiixp_init);
module_exit(atiixp_exit);
...@@ -565,21 +565,10 @@ static struct pci_driver atp867x_driver = { ...@@ -565,21 +565,10 @@ static struct pci_driver atp867x_driver = {
#endif #endif
}; };
static int __init atp867x_init(void) module_pci_driver(atp867x_driver);
{
return pci_register_driver(&atp867x_driver);
}
static void __exit atp867x_exit(void)
{
pci_unregister_driver(&atp867x_driver);
}
MODULE_AUTHOR("John(Jung-Ik) Lee, Google Inc."); MODULE_AUTHOR("John(Jung-Ik) Lee, Google Inc.");
MODULE_DESCRIPTION("low level driver for Artop/Acard 867x ATA controller"); MODULE_DESCRIPTION("low level driver for Artop/Acard 867x ATA controller");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_DEVICE_TABLE(pci, atp867x_pci_tbl); MODULE_DEVICE_TABLE(pci, atp867x_pci_tbl);
MODULE_VERSION(DRV_VERSION); MODULE_VERSION(DRV_VERSION);
module_init(atp867x_init);
module_exit(atp867x_exit);
...@@ -263,21 +263,10 @@ static struct pci_driver cmd640_pci_driver = { ...@@ -263,21 +263,10 @@ static struct pci_driver cmd640_pci_driver = {
#endif #endif
}; };
static int __init cmd640_init(void) module_pci_driver(cmd640_pci_driver);
{
return pci_register_driver(&cmd640_pci_driver);
}
static void __exit cmd640_exit(void)
{
pci_unregister_driver(&cmd640_pci_driver);
}
MODULE_AUTHOR("Alan Cox"); MODULE_AUTHOR("Alan Cox");
MODULE_DESCRIPTION("low-level driver for CMD640 PATA controllers"); MODULE_DESCRIPTION("low-level driver for CMD640 PATA controllers");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_DEVICE_TABLE(pci, cmd640); MODULE_DEVICE_TABLE(pci, cmd640);
MODULE_VERSION(DRV_VERSION); MODULE_VERSION(DRV_VERSION);
module_init(cmd640_init);
module_exit(cmd640_exit);
...@@ -525,21 +525,10 @@ static struct pci_driver cmd64x_pci_driver = { ...@@ -525,21 +525,10 @@ static struct pci_driver cmd64x_pci_driver = {
#endif #endif
}; };
static int __init cmd64x_init(void) module_pci_driver(cmd64x_pci_driver);
{
return pci_register_driver(&cmd64x_pci_driver);
}
static void __exit cmd64x_exit(void)
{
pci_unregister_driver(&cmd64x_pci_driver);
}
MODULE_AUTHOR("Alan Cox"); MODULE_AUTHOR("Alan Cox");
MODULE_DESCRIPTION("low-level driver for CMD64x series PATA controllers"); MODULE_DESCRIPTION("low-level driver for CMD64x series PATA controllers");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_DEVICE_TABLE(pci, cmd64x); MODULE_DEVICE_TABLE(pci, cmd64x);
MODULE_VERSION(DRV_VERSION); MODULE_VERSION(DRV_VERSION);
module_init(cmd64x_init);
module_exit(cmd64x_exit);
...@@ -302,22 +302,10 @@ static struct pci_driver cs5520_pci_driver = { ...@@ -302,22 +302,10 @@ static struct pci_driver cs5520_pci_driver = {
#endif #endif
}; };
static int __init cs5520_init(void) module_pci_driver(cs5520_pci_driver);
{
return pci_register_driver(&cs5520_pci_driver);
}
static void __exit cs5520_exit(void)
{
pci_unregister_driver(&cs5520_pci_driver);
}
MODULE_AUTHOR("Alan Cox"); MODULE_AUTHOR("Alan Cox");
MODULE_DESCRIPTION("low-level driver for Cyrix CS5510/5520"); MODULE_DESCRIPTION("low-level driver for Cyrix CS5510/5520");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_DEVICE_TABLE(pci, pata_cs5520); MODULE_DEVICE_TABLE(pci, pata_cs5520);
MODULE_VERSION(DRV_VERSION); MODULE_VERSION(DRV_VERSION);
module_init(cs5520_init);
module_exit(cs5520_exit);
...@@ -363,21 +363,10 @@ static struct pci_driver cs5530_pci_driver = { ...@@ -363,21 +363,10 @@ static struct pci_driver cs5530_pci_driver = {
#endif #endif
}; };
static int __init cs5530_init(void) module_pci_driver(cs5530_pci_driver);
{
return pci_register_driver(&cs5530_pci_driver);
}
static void __exit cs5530_exit(void)
{
pci_unregister_driver(&cs5530_pci_driver);
}
MODULE_AUTHOR("Alan Cox"); MODULE_AUTHOR("Alan Cox");
MODULE_DESCRIPTION("low-level driver for the Cyrix/NS/AMD 5530"); MODULE_DESCRIPTION("low-level driver for the Cyrix/NS/AMD 5530");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_DEVICE_TABLE(pci, cs5530); MODULE_DEVICE_TABLE(pci, cs5530);
MODULE_VERSION(DRV_VERSION); MODULE_VERSION(DRV_VERSION);
module_init(cs5530_init);
module_exit(cs5530_exit);
...@@ -207,21 +207,10 @@ static struct pci_driver cs5535_pci_driver = { ...@@ -207,21 +207,10 @@ static struct pci_driver cs5535_pci_driver = {
#endif #endif
}; };
static int __init cs5535_init(void) module_pci_driver(cs5535_pci_driver);
{
return pci_register_driver(&cs5535_pci_driver);
}
static void __exit cs5535_exit(void)
{
pci_unregister_driver(&cs5535_pci_driver);
}
MODULE_AUTHOR("Alan Cox, Jens Altmann, Wolfgan Zuleger, Alexander Kiausch"); MODULE_AUTHOR("Alan Cox, Jens Altmann, Wolfgan Zuleger, Alexander Kiausch");
MODULE_DESCRIPTION("low-level driver for the NS/AMD 5535"); MODULE_DESCRIPTION("low-level driver for the NS/AMD 5535");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_DEVICE_TABLE(pci, cs5535); MODULE_DEVICE_TABLE(pci, cs5535);
MODULE_VERSION(DRV_VERSION); MODULE_VERSION(DRV_VERSION);
module_init(cs5535_init);
module_exit(cs5535_exit);
...@@ -274,21 +274,10 @@ static struct pci_driver cs5536_pci_driver = { ...@@ -274,21 +274,10 @@ static struct pci_driver cs5536_pci_driver = {
#endif #endif
}; };
static int __init cs5536_init(void) module_pci_driver(cs5536_pci_driver);
{
return pci_register_driver(&cs5536_pci_driver);
}
static void __exit cs5536_exit(void)
{
pci_unregister_driver(&cs5536_pci_driver);
}
MODULE_AUTHOR("Martin K. Petersen"); MODULE_AUTHOR("Martin K. Petersen");
MODULE_DESCRIPTION("low-level driver for the CS5536 IDE controller"); MODULE_DESCRIPTION("low-level driver for the CS5536 IDE controller");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_DEVICE_TABLE(pci, cs5536); MODULE_DEVICE_TABLE(pci, cs5536);
MODULE_VERSION(DRV_VERSION); MODULE_VERSION(DRV_VERSION);
module_init(cs5536_init);
module_exit(cs5536_exit);
...@@ -158,23 +158,10 @@ static struct pci_driver cy82c693_pci_driver = { ...@@ -158,23 +158,10 @@ static struct pci_driver cy82c693_pci_driver = {
#endif #endif
}; };
static int __init cy82c693_init(void) module_pci_driver(cy82c693_pci_driver);
{
return pci_register_driver(&cy82c693_pci_driver);
}
static void __exit cy82c693_exit(void)
{
pci_unregister_driver(&cy82c693_pci_driver);
}
MODULE_AUTHOR("Alan Cox"); MODULE_AUTHOR("Alan Cox");
MODULE_DESCRIPTION("low-level driver for the CY82C693 PATA controller"); MODULE_DESCRIPTION("low-level driver for the CY82C693 PATA controller");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_DEVICE_TABLE(pci, cy82c693); MODULE_DEVICE_TABLE(pci, cy82c693);
MODULE_VERSION(DRV_VERSION); MODULE_VERSION(DRV_VERSION);
module_init(cy82c693_init);
module_exit(cy82c693_exit);
...@@ -295,22 +295,10 @@ static struct pci_driver efar_pci_driver = { ...@@ -295,22 +295,10 @@ static struct pci_driver efar_pci_driver = {
#endif #endif
}; };
static int __init efar_init(void) module_pci_driver(efar_pci_driver);
{
return pci_register_driver(&efar_pci_driver);
}
static void __exit efar_exit(void)
{
pci_unregister_driver(&efar_pci_driver);
}
module_init(efar_init);
module_exit(efar_exit);
MODULE_AUTHOR("Alan Cox"); MODULE_AUTHOR("Alan Cox");
MODULE_DESCRIPTION("SCSI low-level driver for EFAR PIIX clones"); MODULE_DESCRIPTION("SCSI low-level driver for EFAR PIIX clones");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_DEVICE_TABLE(pci, efar_pci_tbl); MODULE_DEVICE_TABLE(pci, efar_pci_tbl);
MODULE_VERSION(DRV_VERSION); MODULE_VERSION(DRV_VERSION);
...@@ -418,21 +418,10 @@ static struct pci_driver hpt36x_pci_driver = { ...@@ -418,21 +418,10 @@ static struct pci_driver hpt36x_pci_driver = {
#endif #endif
}; };
static int __init hpt36x_init(void) module_pci_driver(hpt36x_pci_driver);
{
return pci_register_driver(&hpt36x_pci_driver);
}
static void __exit hpt36x_exit(void)
{
pci_unregister_driver(&hpt36x_pci_driver);
}
MODULE_AUTHOR("Alan Cox"); MODULE_AUTHOR("Alan Cox");
MODULE_DESCRIPTION("low-level driver for the Highpoint HPT366/368"); MODULE_DESCRIPTION("low-level driver for the Highpoint HPT366/368");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_DEVICE_TABLE(pci, hpt36x); MODULE_DEVICE_TABLE(pci, hpt36x);
MODULE_VERSION(DRV_VERSION); MODULE_VERSION(DRV_VERSION);
module_init(hpt36x_init);
module_exit(hpt36x_exit);
...@@ -1058,21 +1058,10 @@ static struct pci_driver hpt37x_pci_driver = { ...@@ -1058,21 +1058,10 @@ static struct pci_driver hpt37x_pci_driver = {
.remove = ata_pci_remove_one .remove = ata_pci_remove_one
}; };
static int __init hpt37x_init(void) module_pci_driver(hpt37x_pci_driver);
{
return pci_register_driver(&hpt37x_pci_driver);
}
static void __exit hpt37x_exit(void)
{
pci_unregister_driver(&hpt37x_pci_driver);
}
MODULE_AUTHOR("Alan Cox"); MODULE_AUTHOR("Alan Cox");
MODULE_DESCRIPTION("low-level driver for the Highpoint HPT37x/30x"); MODULE_DESCRIPTION("low-level driver for the Highpoint HPT37x/30x");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_DEVICE_TABLE(pci, hpt37x); MODULE_DEVICE_TABLE(pci, hpt37x);
MODULE_VERSION(DRV_VERSION); MODULE_VERSION(DRV_VERSION);
module_init(hpt37x_init);
module_exit(hpt37x_exit);
...@@ -621,21 +621,10 @@ static struct pci_driver hpt3x2n_pci_driver = { ...@@ -621,21 +621,10 @@ static struct pci_driver hpt3x2n_pci_driver = {
.remove = ata_pci_remove_one .remove = ata_pci_remove_one
}; };
static int __init hpt3x2n_init(void) module_pci_driver(hpt3x2n_pci_driver);
{
return pci_register_driver(&hpt3x2n_pci_driver);
}
static void __exit hpt3x2n_exit(void)
{
pci_unregister_driver(&hpt3x2n_pci_driver);
}
MODULE_AUTHOR("Alan Cox"); MODULE_AUTHOR("Alan Cox");
MODULE_DESCRIPTION("low-level driver for the Highpoint HPT3xxN"); MODULE_DESCRIPTION("low-level driver for the Highpoint HPT3xxN");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_DEVICE_TABLE(pci, hpt3x2n); MODULE_DEVICE_TABLE(pci, hpt3x2n);
MODULE_VERSION(DRV_VERSION); MODULE_VERSION(DRV_VERSION);
module_init(hpt3x2n_init);
module_exit(hpt3x2n_exit);
...@@ -284,23 +284,10 @@ static struct pci_driver hpt3x3_pci_driver = { ...@@ -284,23 +284,10 @@ static struct pci_driver hpt3x3_pci_driver = {
#endif #endif
}; };
static int __init hpt3x3_init(void) module_pci_driver(hpt3x3_pci_driver);
{
return pci_register_driver(&hpt3x3_pci_driver);
}
static void __exit hpt3x3_exit(void)
{
pci_unregister_driver(&hpt3x3_pci_driver);
}
MODULE_AUTHOR("Alan Cox"); MODULE_AUTHOR("Alan Cox");
MODULE_DESCRIPTION("low-level driver for the Highpoint HPT343/363"); MODULE_DESCRIPTION("low-level driver for the Highpoint HPT343/363");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_DEVICE_TABLE(pci, hpt3x3); MODULE_DEVICE_TABLE(pci, hpt3x3);
MODULE_VERSION(DRV_VERSION); MODULE_VERSION(DRV_VERSION);
module_init(hpt3x3_init);
module_exit(hpt3x3_exit);
...@@ -290,18 +290,7 @@ static struct pci_driver it8213_pci_driver = { ...@@ -290,18 +290,7 @@ static struct pci_driver it8213_pci_driver = {
#endif #endif
}; };
static int __init it8213_init(void) module_pci_driver(it8213_pci_driver);
{
return pci_register_driver(&it8213_pci_driver);
}
static void __exit it8213_exit(void)
{
pci_unregister_driver(&it8213_pci_driver);
}
module_init(it8213_init);
module_exit(it8213_exit);
MODULE_AUTHOR("Alan Cox"); MODULE_AUTHOR("Alan Cox");
MODULE_DESCRIPTION("SCSI low-level driver for the ITE 8213"); MODULE_DESCRIPTION("SCSI low-level driver for the ITE 8213");
......
...@@ -972,15 +972,7 @@ static struct pci_driver it821x_pci_driver = { ...@@ -972,15 +972,7 @@ static struct pci_driver it821x_pci_driver = {
#endif #endif
}; };
static int __init it821x_init(void) module_pci_driver(it821x_pci_driver);
{
return pci_register_driver(&it821x_pci_driver);
}
static void __exit it821x_exit(void)
{
pci_unregister_driver(&it821x_pci_driver);
}
MODULE_AUTHOR("Alan Cox"); MODULE_AUTHOR("Alan Cox");
MODULE_DESCRIPTION("low-level driver for the IT8211/IT8212 IDE RAID controller"); MODULE_DESCRIPTION("low-level driver for the IT8211/IT8212 IDE RAID controller");
...@@ -988,9 +980,5 @@ MODULE_LICENSE("GPL"); ...@@ -988,9 +980,5 @@ MODULE_LICENSE("GPL");
MODULE_DEVICE_TABLE(pci, it821x); MODULE_DEVICE_TABLE(pci, it821x);
MODULE_VERSION(DRV_VERSION); MODULE_VERSION(DRV_VERSION);
module_param_named(noraid, it8212_noraid, int, S_IRUGO); module_param_named(noraid, it8212_noraid, int, S_IRUGO);
MODULE_PARM_DESC(noraid, "Force card into bypass mode"); MODULE_PARM_DESC(noraid, "Force card into bypass mode");
module_init(it821x_init);
module_exit(it821x_exit);
...@@ -164,18 +164,7 @@ static struct pci_driver jmicron_pci_driver = { ...@@ -164,18 +164,7 @@ static struct pci_driver jmicron_pci_driver = {
#endif #endif
}; };
static int __init jmicron_init(void) module_pci_driver(jmicron_pci_driver);
{
return pci_register_driver(&jmicron_pci_driver);
}
static void __exit jmicron_exit(void)
{
pci_unregister_driver(&jmicron_pci_driver);
}
module_init(jmicron_init);
module_exit(jmicron_exit);
MODULE_AUTHOR("Alan Cox"); MODULE_AUTHOR("Alan Cox");
MODULE_DESCRIPTION("SCSI low-level driver for Jmicron PATA ports"); MODULE_DESCRIPTION("SCSI low-level driver for Jmicron PATA ports");
......
...@@ -178,22 +178,10 @@ static struct pci_driver marvell_pci_driver = { ...@@ -178,22 +178,10 @@ static struct pci_driver marvell_pci_driver = {
#endif #endif
}; };
static int __init marvell_init(void) module_pci_driver(marvell_pci_driver);
{
return pci_register_driver(&marvell_pci_driver);
}
static void __exit marvell_exit(void)
{
pci_unregister_driver(&marvell_pci_driver);
}
module_init(marvell_init);
module_exit(marvell_exit);
MODULE_AUTHOR("Alan Cox"); MODULE_AUTHOR("Alan Cox");
MODULE_DESCRIPTION("SCSI low-level driver for Marvell ATA in legacy mode"); MODULE_DESCRIPTION("SCSI low-level driver for Marvell ATA in legacy mode");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_DEVICE_TABLE(pci, marvell_pci_tbl); MODULE_DEVICE_TABLE(pci, marvell_pci_tbl);
MODULE_VERSION(DRV_VERSION); MODULE_VERSION(DRV_VERSION);
...@@ -230,21 +230,10 @@ static struct pci_driver mpiix_pci_driver = { ...@@ -230,21 +230,10 @@ static struct pci_driver mpiix_pci_driver = {
#endif #endif
}; };
static int __init mpiix_init(void) module_pci_driver(mpiix_pci_driver);
{
return pci_register_driver(&mpiix_pci_driver);
}
static void __exit mpiix_exit(void)
{
pci_unregister_driver(&mpiix_pci_driver);
}
MODULE_AUTHOR("Alan Cox"); MODULE_AUTHOR("Alan Cox");
MODULE_DESCRIPTION("low-level driver for Intel MPIIX"); MODULE_DESCRIPTION("low-level driver for Intel MPIIX");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_DEVICE_TABLE(pci, mpiix); MODULE_DEVICE_TABLE(pci, mpiix);
MODULE_VERSION(DRV_VERSION); MODULE_VERSION(DRV_VERSION);
module_init(mpiix_init);
module_exit(mpiix_exit);
...@@ -99,22 +99,10 @@ static struct pci_driver netcell_pci_driver = { ...@@ -99,22 +99,10 @@ static struct pci_driver netcell_pci_driver = {
#endif #endif
}; };
static int __init netcell_init(void) module_pci_driver(netcell_pci_driver);
{
return pci_register_driver(&netcell_pci_driver);
}
static void __exit netcell_exit(void)
{
pci_unregister_driver(&netcell_pci_driver);
}
module_init(netcell_init);
module_exit(netcell_exit);
MODULE_AUTHOR("Alan Cox"); MODULE_AUTHOR("Alan Cox");
MODULE_DESCRIPTION("SCSI low-level driver for Netcell PATA RAID"); MODULE_DESCRIPTION("SCSI low-level driver for Netcell PATA RAID");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_DEVICE_TABLE(pci, netcell_pci_tbl); MODULE_DEVICE_TABLE(pci, netcell_pci_tbl);
MODULE_VERSION(DRV_VERSION); MODULE_VERSION(DRV_VERSION);
...@@ -190,21 +190,10 @@ static struct pci_driver ninja32_pci_driver = { ...@@ -190,21 +190,10 @@ static struct pci_driver ninja32_pci_driver = {
#endif #endif
}; };
static int __init ninja32_init(void) module_pci_driver(ninja32_pci_driver);
{
return pci_register_driver(&ninja32_pci_driver);
}
static void __exit ninja32_exit(void)
{
pci_unregister_driver(&ninja32_pci_driver);
}
MODULE_AUTHOR("Alan Cox"); MODULE_AUTHOR("Alan Cox");
MODULE_DESCRIPTION("low-level driver for Ninja32 ATA"); MODULE_DESCRIPTION("low-level driver for Ninja32 ATA");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_DEVICE_TABLE(pci, ninja32); MODULE_DEVICE_TABLE(pci, ninja32);
MODULE_VERSION(DRV_VERSION); MODULE_VERSION(DRV_VERSION);
module_init(ninja32_init);
module_exit(ninja32_exit);
...@@ -168,21 +168,10 @@ static struct pci_driver ns87410_pci_driver = { ...@@ -168,21 +168,10 @@ static struct pci_driver ns87410_pci_driver = {
#endif #endif
}; };
static int __init ns87410_init(void) module_pci_driver(ns87410_pci_driver);
{
return pci_register_driver(&ns87410_pci_driver);
}
static void __exit ns87410_exit(void)
{
pci_unregister_driver(&ns87410_pci_driver);
}
MODULE_AUTHOR("Alan Cox"); MODULE_AUTHOR("Alan Cox");
MODULE_DESCRIPTION("low-level driver for Nat Semi 87410"); MODULE_DESCRIPTION("low-level driver for Nat Semi 87410");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_DEVICE_TABLE(pci, ns87410); MODULE_DEVICE_TABLE(pci, ns87410);
MODULE_VERSION(DRV_VERSION); MODULE_VERSION(DRV_VERSION);
module_init(ns87410_init);
module_exit(ns87410_exit);
...@@ -414,18 +414,7 @@ static struct pci_driver ns87415_pci_driver = { ...@@ -414,18 +414,7 @@ static struct pci_driver ns87415_pci_driver = {
#endif #endif
}; };
static int __init ns87415_init(void) module_pci_driver(ns87415_pci_driver);
{
return pci_register_driver(&ns87415_pci_driver);
}
static void __exit ns87415_exit(void)
{
pci_unregister_driver(&ns87415_pci_driver);
}
module_init(ns87415_init);
module_exit(ns87415_exit);
MODULE_AUTHOR("Alan Cox"); MODULE_AUTHOR("Alan Cox");
MODULE_DESCRIPTION("ATA low-level driver for NS87415 controllers"); MODULE_DESCRIPTION("ATA low-level driver for NS87415 controllers");
......
...@@ -265,22 +265,10 @@ static struct pci_driver oldpiix_pci_driver = { ...@@ -265,22 +265,10 @@ static struct pci_driver oldpiix_pci_driver = {
#endif #endif
}; };
static int __init oldpiix_init(void) module_pci_driver(oldpiix_pci_driver);
{
return pci_register_driver(&oldpiix_pci_driver);
}
static void __exit oldpiix_exit(void)
{
pci_unregister_driver(&oldpiix_pci_driver);
}
module_init(oldpiix_init);
module_exit(oldpiix_exit);
MODULE_AUTHOR("Alan Cox"); MODULE_AUTHOR("Alan Cox");
MODULE_DESCRIPTION("SCSI low-level driver for early PIIX series controllers"); MODULE_DESCRIPTION("SCSI low-level driver for early PIIX series controllers");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_DEVICE_TABLE(pci, oldpiix_pci_tbl); MODULE_DEVICE_TABLE(pci, oldpiix_pci_tbl);
MODULE_VERSION(DRV_VERSION); MODULE_VERSION(DRV_VERSION);
...@@ -191,22 +191,10 @@ static struct pci_driver opti_pci_driver = { ...@@ -191,22 +191,10 @@ static struct pci_driver opti_pci_driver = {
#endif #endif
}; };
static int __init opti_init(void) module_pci_driver(opti_pci_driver);
{
return pci_register_driver(&opti_pci_driver);
}
static void __exit opti_exit(void)
{
pci_unregister_driver(&opti_pci_driver);
}
MODULE_AUTHOR("Alan Cox"); MODULE_AUTHOR("Alan Cox");
MODULE_DESCRIPTION("low-level driver for Opti 621/621X"); MODULE_DESCRIPTION("low-level driver for Opti 621/621X");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_DEVICE_TABLE(pci, opti); MODULE_DEVICE_TABLE(pci, opti);
MODULE_VERSION(DRV_VERSION); MODULE_VERSION(DRV_VERSION);
module_init(opti_init);
module_exit(opti_exit);
...@@ -447,21 +447,10 @@ static struct pci_driver optidma_pci_driver = { ...@@ -447,21 +447,10 @@ static struct pci_driver optidma_pci_driver = {
#endif #endif
}; };
static int __init optidma_init(void) module_pci_driver(optidma_pci_driver);
{
return pci_register_driver(&optidma_pci_driver);
}
static void __exit optidma_exit(void)
{
pci_unregister_driver(&optidma_pci_driver);
}
MODULE_AUTHOR("Alan Cox"); MODULE_AUTHOR("Alan Cox");
MODULE_DESCRIPTION("low-level driver for Opti Firestar/Firestar Plus"); MODULE_DESCRIPTION("low-level driver for Opti Firestar/Firestar Plus");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_DEVICE_TABLE(pci, optidma); MODULE_DEVICE_TABLE(pci, optidma);
MODULE_VERSION(DRV_VERSION); MODULE_VERSION(DRV_VERSION);
module_init(optidma_init);
module_exit(optidma_exit);
...@@ -784,21 +784,4 @@ static int pdc2027x_reinit_one(struct pci_dev *pdev) ...@@ -784,21 +784,4 @@ static int pdc2027x_reinit_one(struct pci_dev *pdev)
} }
#endif #endif
/** module_pci_driver(pdc2027x_pci_driver);
* pdc2027x_init - Called after this module is loaded into the kernel.
*/
static int __init pdc2027x_init(void)
{
return pci_register_driver(&pdc2027x_pci_driver);
}
/**
* pdc2027x_exit - Called before this module unloaded from the kernel
*/
static void __exit pdc2027x_exit(void)
{
pci_unregister_driver(&pdc2027x_pci_driver);
}
module_init(pdc2027x_init);
module_exit(pdc2027x_exit);
...@@ -384,21 +384,10 @@ static struct pci_driver pdc202xx_pci_driver = { ...@@ -384,21 +384,10 @@ static struct pci_driver pdc202xx_pci_driver = {
#endif #endif
}; };
static int __init pdc202xx_init(void) module_pci_driver(pdc202xx_pci_driver);
{
return pci_register_driver(&pdc202xx_pci_driver);
}
static void __exit pdc202xx_exit(void)
{
pci_unregister_driver(&pdc202xx_pci_driver);
}
MODULE_AUTHOR("Alan Cox"); MODULE_AUTHOR("Alan Cox");
MODULE_DESCRIPTION("low-level driver for Promise 2024x and 20262-20267"); MODULE_DESCRIPTION("low-level driver for Promise 2024x and 20262-20267");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_DEVICE_TABLE(pci, pdc202xx); MODULE_DEVICE_TABLE(pci, pdc202xx);
MODULE_VERSION(DRV_VERSION); MODULE_VERSION(DRV_VERSION);
module_init(pdc202xx_init);
module_exit(pdc202xx_exit);
...@@ -117,24 +117,10 @@ static struct pci_driver ata_tosh_pci_driver = { ...@@ -117,24 +117,10 @@ static struct pci_driver ata_tosh_pci_driver = {
#endif #endif
}; };
static int __init ata_tosh_init(void) module_pci_driver(ata_tosh_pci_driver);
{
return pci_register_driver(&ata_tosh_pci_driver);
}
static void __exit ata_tosh_exit(void)
{
pci_unregister_driver(&ata_tosh_pci_driver);
}
MODULE_AUTHOR("Alan Cox"); MODULE_AUTHOR("Alan Cox");
MODULE_DESCRIPTION("Low level driver for Toshiba Piccolo ATA"); MODULE_DESCRIPTION("Low level driver for Toshiba Piccolo ATA");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_DEVICE_TABLE(pci, ata_tosh); MODULE_DEVICE_TABLE(pci, ata_tosh);
MODULE_VERSION(DRV_VERSION); MODULE_VERSION(DRV_VERSION);
module_init(ata_tosh_init);
module_exit(ata_tosh_exit);
...@@ -244,22 +244,10 @@ static struct pci_driver radisys_pci_driver = { ...@@ -244,22 +244,10 @@ static struct pci_driver radisys_pci_driver = {
#endif #endif
}; };
static int __init radisys_init(void) module_pci_driver(radisys_pci_driver);
{
return pci_register_driver(&radisys_pci_driver);
}
static void __exit radisys_exit(void)
{
pci_unregister_driver(&radisys_pci_driver);
}
module_init(radisys_init);
module_exit(radisys_exit);
MODULE_AUTHOR("Alan Cox"); MODULE_AUTHOR("Alan Cox");
MODULE_DESCRIPTION("SCSI low-level driver for Radisys R82600 controllers"); MODULE_DESCRIPTION("SCSI low-level driver for Radisys R82600 controllers");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_DEVICE_TABLE(pci, radisys_pci_tbl); MODULE_DEVICE_TABLE(pci, radisys_pci_tbl);
MODULE_VERSION(DRV_VERSION); MODULE_VERSION(DRV_VERSION);
...@@ -394,18 +394,7 @@ static struct pci_driver rdc_pci_driver = { ...@@ -394,18 +394,7 @@ static struct pci_driver rdc_pci_driver = {
}; };
static int __init rdc_init(void) module_pci_driver(rdc_pci_driver);
{
return pci_register_driver(&rdc_pci_driver);
}
static void __exit rdc_exit(void)
{
pci_unregister_driver(&rdc_pci_driver);
}
module_init(rdc_init);
module_exit(rdc_exit);
MODULE_AUTHOR("Alan Cox (based on ata_piix)"); MODULE_AUTHOR("Alan Cox (based on ata_piix)");
MODULE_DESCRIPTION("SCSI low-level driver for RDC PATA controllers"); MODULE_DESCRIPTION("SCSI low-level driver for RDC PATA controllers");
......
...@@ -140,22 +140,10 @@ static struct pci_driver rz1000_pci_driver = { ...@@ -140,22 +140,10 @@ static struct pci_driver rz1000_pci_driver = {
#endif #endif
}; };
static int __init rz1000_init(void) module_pci_driver(rz1000_pci_driver);
{
return pci_register_driver(&rz1000_pci_driver);
}
static void __exit rz1000_exit(void)
{
pci_unregister_driver(&rz1000_pci_driver);
}
MODULE_AUTHOR("Alan Cox"); MODULE_AUTHOR("Alan Cox");
MODULE_DESCRIPTION("low-level driver for RZ1000 PCI ATA"); MODULE_DESCRIPTION("low-level driver for RZ1000 PCI ATA");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_DEVICE_TABLE(pci, pata_rz1000); MODULE_DEVICE_TABLE(pci, pata_rz1000);
MODULE_VERSION(DRV_VERSION); MODULE_VERSION(DRV_VERSION);
module_init(rz1000_init);
module_exit(rz1000_exit);
...@@ -261,21 +261,10 @@ static struct pci_driver sc1200_pci_driver = { ...@@ -261,21 +261,10 @@ static struct pci_driver sc1200_pci_driver = {
#endif #endif
}; };
static int __init sc1200_init(void) module_pci_driver(sc1200_pci_driver);
{
return pci_register_driver(&sc1200_pci_driver);
}
static void __exit sc1200_exit(void)
{
pci_unregister_driver(&sc1200_pci_driver);
}
MODULE_AUTHOR("Alan Cox, Mark Lord"); MODULE_AUTHOR("Alan Cox, Mark Lord");
MODULE_DESCRIPTION("low-level driver for the NS/AMD SC1200"); MODULE_DESCRIPTION("low-level driver for the NS/AMD SC1200");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_DEVICE_TABLE(pci, sc1200); MODULE_DEVICE_TABLE(pci, sc1200);
MODULE_VERSION(DRV_VERSION); MODULE_VERSION(DRV_VERSION);
module_init(sc1200_init);
module_exit(sc1200_exit);
...@@ -1103,26 +1103,7 @@ static struct pci_driver scc_pci_driver = { ...@@ -1103,26 +1103,7 @@ static struct pci_driver scc_pci_driver = {
#endif #endif
}; };
static int __init scc_init (void) module_pci_driver(scc_pci_driver);
{
int rc;
DPRINTK("pci_register_driver\n");
rc = pci_register_driver(&scc_pci_driver);
if (rc)
return rc;
DPRINTK("done\n");
return 0;
}
static void __exit scc_exit (void)
{
pci_unregister_driver(&scc_pci_driver);
}
module_init(scc_init);
module_exit(scc_exit);
MODULE_AUTHOR("Toshiba corp"); MODULE_AUTHOR("Toshiba corp");
MODULE_DESCRIPTION("SCSI low-level driver for Toshiba SCC PATA controller"); MODULE_DESCRIPTION("SCSI low-level driver for Toshiba SCC PATA controller");
......
...@@ -179,15 +179,4 @@ static int __devinit sch_init_one(struct pci_dev *pdev, ...@@ -179,15 +179,4 @@ static int __devinit sch_init_one(struct pci_dev *pdev,
return ata_pci_bmdma_init_one(pdev, ppi, &sch_sht, NULL, 0); return ata_pci_bmdma_init_one(pdev, ppi, &sch_sht, NULL, 0);
} }
static int __init sch_init(void) module_pci_driver(sch_pci_driver);
{
return pci_register_driver(&sch_pci_driver);
}
static void __exit sch_exit(void)
{
pci_unregister_driver(&sch_pci_driver);
}
module_init(sch_init);
module_exit(sch_exit);
...@@ -475,21 +475,10 @@ static struct pci_driver serverworks_pci_driver = { ...@@ -475,21 +475,10 @@ static struct pci_driver serverworks_pci_driver = {
#endif #endif
}; };
static int __init serverworks_init(void) module_pci_driver(serverworks_pci_driver);
{
return pci_register_driver(&serverworks_pci_driver);
}
static void __exit serverworks_exit(void)
{
pci_unregister_driver(&serverworks_pci_driver);
}
MODULE_AUTHOR("Alan Cox"); MODULE_AUTHOR("Alan Cox");
MODULE_DESCRIPTION("low-level driver for Serverworks OSB4/CSB5/CSB6"); MODULE_DESCRIPTION("low-level driver for Serverworks OSB4/CSB5/CSB6");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_DEVICE_TABLE(pci, serverworks); MODULE_DEVICE_TABLE(pci, serverworks);
MODULE_VERSION(DRV_VERSION); MODULE_VERSION(DRV_VERSION);
module_init(serverworks_init);
module_exit(serverworks_exit);
...@@ -437,21 +437,10 @@ static struct pci_driver sil680_pci_driver = { ...@@ -437,21 +437,10 @@ static struct pci_driver sil680_pci_driver = {
#endif #endif
}; };
static int __init sil680_init(void) module_pci_driver(sil680_pci_driver);
{
return pci_register_driver(&sil680_pci_driver);
}
static void __exit sil680_exit(void)
{
pci_unregister_driver(&sil680_pci_driver);
}
MODULE_AUTHOR("Alan Cox"); MODULE_AUTHOR("Alan Cox");
MODULE_DESCRIPTION("low-level driver for SI680 PATA"); MODULE_DESCRIPTION("low-level driver for SI680 PATA");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_DEVICE_TABLE(pci, sil680); MODULE_DEVICE_TABLE(pci, sil680);
MODULE_VERSION(DRV_VERSION); MODULE_VERSION(DRV_VERSION);
module_init(sil680_init);
module_exit(sil680_exit);
...@@ -906,22 +906,10 @@ static struct pci_driver sis_pci_driver = { ...@@ -906,22 +906,10 @@ static struct pci_driver sis_pci_driver = {
#endif #endif
}; };
static int __init sis_init(void) module_pci_driver(sis_pci_driver);
{
return pci_register_driver(&sis_pci_driver);
}
static void __exit sis_exit(void)
{
pci_unregister_driver(&sis_pci_driver);
}
module_init(sis_init);
module_exit(sis_exit);
MODULE_AUTHOR("Alan Cox"); MODULE_AUTHOR("Alan Cox");
MODULE_DESCRIPTION("SCSI low-level driver for SiS ATA"); MODULE_DESCRIPTION("SCSI low-level driver for SiS ATA");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_DEVICE_TABLE(pci, sis_pci_tbl); MODULE_DEVICE_TABLE(pci, sis_pci_tbl);
MODULE_VERSION(DRV_VERSION); MODULE_VERSION(DRV_VERSION);
...@@ -372,21 +372,10 @@ static struct pci_driver sl82c105_pci_driver = { ...@@ -372,21 +372,10 @@ static struct pci_driver sl82c105_pci_driver = {
#endif #endif
}; };
static int __init sl82c105_init(void) module_pci_driver(sl82c105_pci_driver);
{
return pci_register_driver(&sl82c105_pci_driver);
}
static void __exit sl82c105_exit(void)
{
pci_unregister_driver(&sl82c105_pci_driver);
}
MODULE_AUTHOR("Alan Cox"); MODULE_AUTHOR("Alan Cox");
MODULE_DESCRIPTION("low-level driver for Sl82c105"); MODULE_DESCRIPTION("low-level driver for Sl82c105");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_DEVICE_TABLE(pci, sl82c105); MODULE_DEVICE_TABLE(pci, sl82c105);
MODULE_VERSION(DRV_VERSION); MODULE_VERSION(DRV_VERSION);
module_init(sl82c105_init);
module_exit(sl82c105_exit);
...@@ -240,21 +240,10 @@ static struct pci_driver triflex_pci_driver = { ...@@ -240,21 +240,10 @@ static struct pci_driver triflex_pci_driver = {
#endif #endif
}; };
static int __init triflex_init(void) module_pci_driver(triflex_pci_driver);
{
return pci_register_driver(&triflex_pci_driver);
}
static void __exit triflex_exit(void)
{
pci_unregister_driver(&triflex_pci_driver);
}
MODULE_AUTHOR("Alan Cox"); MODULE_AUTHOR("Alan Cox");
MODULE_DESCRIPTION("low-level driver for Compaq Triflex"); MODULE_DESCRIPTION("low-level driver for Compaq Triflex");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_DEVICE_TABLE(pci, triflex); MODULE_DEVICE_TABLE(pci, triflex);
MODULE_VERSION(DRV_VERSION); MODULE_VERSION(DRV_VERSION);
module_init(triflex_init);
module_exit(triflex_exit);
...@@ -711,21 +711,10 @@ static struct pci_driver via_pci_driver = { ...@@ -711,21 +711,10 @@ static struct pci_driver via_pci_driver = {
#endif #endif
}; };
static int __init via_init(void) module_pci_driver(via_pci_driver);
{
return pci_register_driver(&via_pci_driver);
}
static void __exit via_exit(void)
{
pci_unregister_driver(&via_pci_driver);
}
MODULE_AUTHOR("Alan Cox"); MODULE_AUTHOR("Alan Cox");
MODULE_DESCRIPTION("low-level driver for VIA PATA"); MODULE_DESCRIPTION("low-level driver for VIA PATA");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_DEVICE_TABLE(pci, via); MODULE_DEVICE_TABLE(pci, via);
MODULE_VERSION(DRV_VERSION); MODULE_VERSION(DRV_VERSION);
module_init(via_init);
module_exit(via_exit);
...@@ -660,21 +660,10 @@ static int adma_ata_init_one(struct pci_dev *pdev, ...@@ -660,21 +660,10 @@ static int adma_ata_init_one(struct pci_dev *pdev,
&adma_ata_sht); &adma_ata_sht);
} }
static int __init adma_ata_init(void) module_pci_driver(adma_ata_pci_driver);
{
return pci_register_driver(&adma_ata_pci_driver);
}
static void __exit adma_ata_exit(void)
{
pci_unregister_driver(&adma_ata_pci_driver);
}
MODULE_AUTHOR("Mark Lord"); MODULE_AUTHOR("Mark Lord");
MODULE_DESCRIPTION("Pacific Digital Corporation ADMA low-level driver"); MODULE_DESCRIPTION("Pacific Digital Corporation ADMA low-level driver");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_DEVICE_TABLE(pci, adma_ata_pci_tbl); MODULE_DEVICE_TABLE(pci, adma_ata_pci_tbl);
MODULE_VERSION(DRV_VERSION); MODULE_VERSION(DRV_VERSION);
module_init(adma_ata_init);
module_exit(adma_ata_exit);
...@@ -894,21 +894,10 @@ static struct pci_driver inic_pci_driver = { ...@@ -894,21 +894,10 @@ static struct pci_driver inic_pci_driver = {
.remove = ata_pci_remove_one, .remove = ata_pci_remove_one,
}; };
static int __init inic_init(void) module_pci_driver(inic_pci_driver);
{
return pci_register_driver(&inic_pci_driver);
}
static void __exit inic_exit(void)
{
pci_unregister_driver(&inic_pci_driver);
}
MODULE_AUTHOR("Tejun Heo"); MODULE_AUTHOR("Tejun Heo");
MODULE_DESCRIPTION("low-level driver for Initio 162x SATA"); MODULE_DESCRIPTION("low-level driver for Initio 162x SATA");
MODULE_LICENSE("GPL v2"); MODULE_LICENSE("GPL v2");
MODULE_DEVICE_TABLE(pci, inic_pci_tbl); MODULE_DEVICE_TABLE(pci, inic_pci_tbl);
MODULE_VERSION(DRV_VERSION); MODULE_VERSION(DRV_VERSION);
module_init(inic_init);
module_exit(inic_exit);
...@@ -2510,22 +2510,11 @@ static void nv_adma_host_stop(struct ata_host *host) ...@@ -2510,22 +2510,11 @@ static void nv_adma_host_stop(struct ata_host *host)
nv_ck804_host_stop(host); nv_ck804_host_stop(host);
} }
static int __init nv_init(void) module_pci_driver(nv_pci_driver);
{
return pci_register_driver(&nv_pci_driver);
}
static void __exit nv_exit(void)
{
pci_unregister_driver(&nv_pci_driver);
}
module_init(nv_init);
module_exit(nv_exit);
module_param_named(adma, adma_enabled, bool, 0444); module_param_named(adma, adma_enabled, bool, 0444);
MODULE_PARM_DESC(adma, "Enable use of ADMA (Default: false)"); MODULE_PARM_DESC(adma, "Enable use of ADMA (Default: false)");
module_param_named(swncq, swncq_enabled, bool, 0444); module_param_named(swncq, swncq_enabled, bool, 0444);
MODULE_PARM_DESC(swncq, "Enable use of SWNCQ (Default: true)"); MODULE_PARM_DESC(swncq, "Enable use of SWNCQ (Default: true)");
module_param_named(msi, msi_enabled, bool, 0444); module_param_named(msi, msi_enabled, bool, 0444);
MODULE_PARM_DESC(msi, "Enable use of MSI (Default: false)"); MODULE_PARM_DESC(msi, "Enable use of MSI (Default: false)");
...@@ -1249,21 +1249,10 @@ static int pdc_ata_init_one(struct pci_dev *pdev, ...@@ -1249,21 +1249,10 @@ static int pdc_ata_init_one(struct pci_dev *pdev,
&pdc_ata_sht); &pdc_ata_sht);
} }
static int __init pdc_ata_init(void) module_pci_driver(pdc_ata_pci_driver);
{
return pci_register_driver(&pdc_ata_pci_driver);
}
static void __exit pdc_ata_exit(void)
{
pci_unregister_driver(&pdc_ata_pci_driver);
}
MODULE_AUTHOR("Jeff Garzik"); MODULE_AUTHOR("Jeff Garzik");
MODULE_DESCRIPTION("Promise ATA TX2/TX4/TX4000 low-level driver"); MODULE_DESCRIPTION("Promise ATA TX2/TX4/TX4000 low-level driver");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_DEVICE_TABLE(pci, pdc_ata_pci_tbl); MODULE_DEVICE_TABLE(pci, pdc_ata_pci_tbl);
MODULE_VERSION(DRV_VERSION); MODULE_VERSION(DRV_VERSION);
module_init(pdc_ata_init);
module_exit(pdc_ata_exit);
...@@ -635,21 +635,10 @@ static int qs_ata_init_one(struct pci_dev *pdev, ...@@ -635,21 +635,10 @@ static int qs_ata_init_one(struct pci_dev *pdev,
&qs_ata_sht); &qs_ata_sht);
} }
static int __init qs_ata_init(void) module_pci_driver(qs_ata_pci_driver);
{
return pci_register_driver(&qs_ata_pci_driver);
}
static void __exit qs_ata_exit(void)
{
pci_unregister_driver(&qs_ata_pci_driver);
}
MODULE_AUTHOR("Mark Lord"); MODULE_AUTHOR("Mark Lord");
MODULE_DESCRIPTION("Pacific Digital Corporation QStor SATA low-level driver"); MODULE_DESCRIPTION("Pacific Digital Corporation QStor SATA low-level driver");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_DEVICE_TABLE(pci, qs_ata_pci_tbl); MODULE_DEVICE_TABLE(pci, qs_ata_pci_tbl);
MODULE_VERSION(DRV_VERSION); MODULE_VERSION(DRV_VERSION);
module_init(qs_ata_init);
module_exit(qs_ata_exit);
...@@ -819,16 +819,4 @@ static int sil_pci_device_resume(struct pci_dev *pdev) ...@@ -819,16 +819,4 @@ static int sil_pci_device_resume(struct pci_dev *pdev)
} }
#endif #endif
static int __init sil_init(void) module_pci_driver(sil_pci_driver);
{
return pci_register_driver(&sil_pci_driver);
}
static void __exit sil_exit(void)
{
pci_unregister_driver(&sil_pci_driver);
}
module_init(sil_init);
module_exit(sil_exit);
...@@ -1382,20 +1382,9 @@ static int sil24_port_resume(struct ata_port *ap) ...@@ -1382,20 +1382,9 @@ static int sil24_port_resume(struct ata_port *ap)
} }
#endif #endif
static int __init sil24_init(void) module_pci_driver(sil24_pci_driver);
{
return pci_register_driver(&sil24_pci_driver);
}
static void __exit sil24_exit(void)
{
pci_unregister_driver(&sil24_pci_driver);
}
MODULE_AUTHOR("Tejun Heo"); MODULE_AUTHOR("Tejun Heo");
MODULE_DESCRIPTION("Silicon Image 3124/3132 SATA low-level driver"); MODULE_DESCRIPTION("Silicon Image 3124/3132 SATA low-level driver");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_DEVICE_TABLE(pci, sil24_pci_tbl); MODULE_DEVICE_TABLE(pci, sil24_pci_tbl);
module_init(sil24_init);
module_exit(sil24_exit);
...@@ -308,15 +308,4 @@ static int sis_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) ...@@ -308,15 +308,4 @@ static int sis_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
IRQF_SHARED, &sis_sht); IRQF_SHARED, &sis_sht);
} }
static int __init sis_init(void) module_pci_driver(sis_pci_driver);
{
return pci_register_driver(&sis_pci_driver);
}
static void __exit sis_exit(void)
{
pci_unregister_driver(&sis_pci_driver);
}
module_init(sis_init);
module_exit(sis_exit);
...@@ -525,21 +525,10 @@ static struct pci_driver k2_sata_pci_driver = { ...@@ -525,21 +525,10 @@ static struct pci_driver k2_sata_pci_driver = {
.remove = ata_pci_remove_one, .remove = ata_pci_remove_one,
}; };
static int __init k2_sata_init(void) module_pci_driver(k2_sata_pci_driver);
{
return pci_register_driver(&k2_sata_pci_driver);
}
static void __exit k2_sata_exit(void)
{
pci_unregister_driver(&k2_sata_pci_driver);
}
MODULE_AUTHOR("Benjamin Herrenschmidt"); MODULE_AUTHOR("Benjamin Herrenschmidt");
MODULE_DESCRIPTION("low-level driver for K2 SATA controller"); MODULE_DESCRIPTION("low-level driver for K2 SATA controller");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_DEVICE_TABLE(pci, k2_sata_pci_tbl); MODULE_DEVICE_TABLE(pci, k2_sata_pci_tbl);
MODULE_VERSION(DRV_VERSION); MODULE_VERSION(DRV_VERSION);
module_init(k2_sata_init);
module_exit(k2_sata_exit);
...@@ -1498,24 +1498,10 @@ static int pdc_sata_init_one(struct pci_dev *pdev, ...@@ -1498,24 +1498,10 @@ static int pdc_sata_init_one(struct pci_dev *pdev,
IRQF_SHARED, &pdc_sata_sht); IRQF_SHARED, &pdc_sata_sht);
} }
module_pci_driver(pdc_sata_pci_driver);
static int __init pdc_sata_init(void)
{
return pci_register_driver(&pdc_sata_pci_driver);
}
static void __exit pdc_sata_exit(void)
{
pci_unregister_driver(&pdc_sata_pci_driver);
}
MODULE_AUTHOR("Jeff Garzik"); MODULE_AUTHOR("Jeff Garzik");
MODULE_DESCRIPTION("Promise SATA low-level driver"); MODULE_DESCRIPTION("Promise SATA low-level driver");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_DEVICE_TABLE(pci, pdc_sata_pci_tbl); MODULE_DEVICE_TABLE(pci, pdc_sata_pci_tbl);
MODULE_VERSION(DRV_VERSION); MODULE_VERSION(DRV_VERSION);
module_init(pdc_sata_init);
module_exit(pdc_sata_exit);
...@@ -243,16 +243,4 @@ static int uli_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) ...@@ -243,16 +243,4 @@ static int uli_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
IRQF_SHARED, &uli_sht); IRQF_SHARED, &uli_sht);
} }
static int __init uli_init(void) module_pci_driver(uli_pci_driver);
{
return pci_register_driver(&uli_pci_driver);
}
static void __exit uli_exit(void)
{
pci_unregister_driver(&uli_pci_driver);
}
module_init(uli_init);
module_exit(uli_exit);
...@@ -655,15 +655,4 @@ static int svia_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) ...@@ -655,15 +655,4 @@ static int svia_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
IRQF_SHARED, &svia_sht); IRQF_SHARED, &svia_sht);
} }
static int __init svia_init(void) module_pci_driver(svia_pci_driver);
{
return pci_register_driver(&svia_pci_driver);
}
static void __exit svia_exit(void)
{
pci_unregister_driver(&svia_pci_driver);
}
module_init(svia_init);
module_exit(svia_exit);
...@@ -436,21 +436,10 @@ static struct pci_driver vsc_sata_pci_driver = { ...@@ -436,21 +436,10 @@ static struct pci_driver vsc_sata_pci_driver = {
.remove = ata_pci_remove_one, .remove = ata_pci_remove_one,
}; };
static int __init vsc_sata_init(void) module_pci_driver(vsc_sata_pci_driver);
{
return pci_register_driver(&vsc_sata_pci_driver);
}
static void __exit vsc_sata_exit(void)
{
pci_unregister_driver(&vsc_sata_pci_driver);
}
MODULE_AUTHOR("Jeremy Higdon"); MODULE_AUTHOR("Jeremy Higdon");
MODULE_DESCRIPTION("low-level driver for Vitesse VSC7174 SATA controller"); MODULE_DESCRIPTION("low-level driver for Vitesse VSC7174 SATA controller");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_DEVICE_TABLE(pci, vsc_sata_pci_tbl); MODULE_DEVICE_TABLE(pci, vsc_sata_pci_tbl);
MODULE_VERSION(DRV_VERSION); MODULE_VERSION(DRV_VERSION);
module_init(vsc_sata_init);
module_exit(vsc_sata_exit);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment