]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/ata/pata_pdc2027x.c
Merge branch 'audit' of git://git.linaro.org/people/rmk/linux-arm
[karo-tx-linux.git] / drivers / ata / pata_pdc2027x.c
index 7d63f24179c756ce031c18348033cfe9b633ad1f..c9399c8688c5c62555137d2db5a6ba060e2240c4 100644 (file)
@@ -784,21 +784,4 @@ static int pdc2027x_reinit_one(struct pci_dev *pdev)
 }
 #endif
 
-/**
- * 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);
+module_pci_driver(pdc2027x_pci_driver);