]> Pileus Git - ~andy/linux/blobdiff - drivers/ata/pata_hpt37x.c
Merge branch 'drm-fixes' of git://people.freedesktop.org/~airlied/linux
[~andy/linux] / drivers / ata / pata_hpt37x.c
index 9620636aa405fd223fcdb54086a8b5123f54ec9d..a9d74eff5fc4b159367b1f8f03d7aa842e331dba 100644 (file)
@@ -1058,21 +1058,10 @@ static struct pci_driver hpt37x_pci_driver = {
        .remove         = ata_pci_remove_one
 };
 
-static int __init hpt37x_init(void)
-{
-       return pci_register_driver(&hpt37x_pci_driver);
-}
-
-static void __exit hpt37x_exit(void)
-{
-       pci_unregister_driver(&hpt37x_pci_driver);
-}
+module_pci_driver(hpt37x_pci_driver);
 
 MODULE_AUTHOR("Alan Cox");
 MODULE_DESCRIPTION("low-level driver for the Highpoint HPT37x/30x");
 MODULE_LICENSE("GPL");
 MODULE_DEVICE_TABLE(pci, hpt37x);
 MODULE_VERSION(DRV_VERSION);
-
-module_init(hpt37x_init);
-module_exit(hpt37x_exit);