diff options
Diffstat (limited to 'drivers/ata/pata_amd.c')
-rw-r--r-- | drivers/ata/pata_amd.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/ata/pata_amd.c b/drivers/ata/pata_amd.c index dc6b5dae0463..82a08922afcd 100644 --- a/drivers/ata/pata_amd.c +++ b/drivers/ata/pata_amd.c | |||
@@ -632,21 +632,10 @@ static struct pci_driver amd_pci_driver = { | |||
632 | #endif | 632 | #endif |
633 | }; | 633 | }; |
634 | 634 | ||
635 | static int __init amd_init(void) | 635 | module_pci_driver(amd_pci_driver); |
636 | { | ||
637 | return pci_register_driver(&amd_pci_driver); | ||
638 | } | ||
639 | |||
640 | static void __exit amd_exit(void) | ||
641 | { | ||
642 | pci_unregister_driver(&amd_pci_driver); | ||
643 | } | ||
644 | 636 | ||
645 | MODULE_AUTHOR("Alan Cox"); | 637 | MODULE_AUTHOR("Alan Cox"); |
646 | MODULE_DESCRIPTION("low-level driver for AMD and Nvidia PATA IDE"); | 638 | MODULE_DESCRIPTION("low-level driver for AMD and Nvidia PATA IDE"); |
647 | MODULE_LICENSE("GPL"); | 639 | MODULE_LICENSE("GPL"); |
648 | MODULE_DEVICE_TABLE(pci, amd); | 640 | MODULE_DEVICE_TABLE(pci, amd); |
649 | MODULE_VERSION(DRV_VERSION); | 641 | MODULE_VERSION(DRV_VERSION); |
650 | |||
651 | module_init(amd_init); | ||
652 | module_exit(amd_exit); | ||