]> Pileus Git - ~andy/linux/blobdiff - drivers/ata/pata_oldpiix.c
Merge branch 'fixes_for-3.6' into fixes
[~andy/linux] / drivers / ata / pata_oldpiix.c
index 98cdf50e406559ec42ebf714140acb6da30ac959..d77b2e1054efc25cf8207ec6b963ce853427255f 100644 (file)
@@ -265,22 +265,10 @@ static struct pci_driver oldpiix_pci_driver = {
 #endif
 };
 
-static int __init oldpiix_init(void)
-{
-       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_pci_driver(oldpiix_pci_driver);
 
 MODULE_AUTHOR("Alan Cox");
 MODULE_DESCRIPTION("SCSI low-level driver for early PIIX series controllers");
 MODULE_LICENSE("GPL");
 MODULE_DEVICE_TABLE(pci, oldpiix_pci_tbl);
 MODULE_VERSION(DRV_VERSION);
-