]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/ata/pata_hpt3x3.c
Merge tag 'fbdev-updates-for-3.6' of git://github.com/schandinat/linux-2.6
[karo-tx-linux.git] / drivers / ata / pata_hpt3x3.c
index b3042dab08bbb8bbb230438508d6c693dd9cb7e5..76c9314bb82457cf950e72454765b79c23a12d14 100644 (file)
@@ -284,23 +284,10 @@ static struct pci_driver hpt3x3_pci_driver = {
 #endif
 };
 
-static int __init hpt3x3_init(void)
-{
-       return pci_register_driver(&hpt3x3_pci_driver);
-}
-
-
-static void __exit hpt3x3_exit(void)
-{
-       pci_unregister_driver(&hpt3x3_pci_driver);
-}
-
+module_pci_driver(hpt3x3_pci_driver);
 
 MODULE_AUTHOR("Alan Cox");
 MODULE_DESCRIPTION("low-level driver for the Highpoint HPT343/363");
 MODULE_LICENSE("GPL");
 MODULE_DEVICE_TABLE(pci, hpt3x3);
 MODULE_VERSION(DRV_VERSION);
-
-module_init(hpt3x3_init);
-module_exit(hpt3x3_exit);