diff options
Diffstat (limited to 'drivers/ata/sata_svw.c')
-rw-r--r-- | drivers/ata/sata_svw.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/ata/sata_svw.c b/drivers/ata/sata_svw.c index c646118943ff..44a4256533e1 100644 --- a/drivers/ata/sata_svw.c +++ b/drivers/ata/sata_svw.c | |||
@@ -525,21 +525,10 @@ static struct pci_driver k2_sata_pci_driver = { | |||
525 | .remove = ata_pci_remove_one, | 525 | .remove = ata_pci_remove_one, |
526 | }; | 526 | }; |
527 | 527 | ||
528 | static int __init k2_sata_init(void) | 528 | module_pci_driver(k2_sata_pci_driver); |
529 | { | ||
530 | return pci_register_driver(&k2_sata_pci_driver); | ||
531 | } | ||
532 | |||
533 | static void __exit k2_sata_exit(void) | ||
534 | { | ||
535 | pci_unregister_driver(&k2_sata_pci_driver); | ||
536 | } | ||
537 | 529 | ||
538 | MODULE_AUTHOR("Benjamin Herrenschmidt"); | 530 | MODULE_AUTHOR("Benjamin Herrenschmidt"); |
539 | MODULE_DESCRIPTION("low-level driver for K2 SATA controller"); | 531 | MODULE_DESCRIPTION("low-level driver for K2 SATA controller"); |
540 | MODULE_LICENSE("GPL"); | 532 | MODULE_LICENSE("GPL"); |
541 | MODULE_DEVICE_TABLE(pci, k2_sata_pci_tbl); | 533 | MODULE_DEVICE_TABLE(pci, k2_sata_pci_tbl); |
542 | MODULE_VERSION(DRV_VERSION); | 534 | MODULE_VERSION(DRV_VERSION); |
543 | |||
544 | module_init(k2_sata_init); | ||
545 | module_exit(k2_sata_exit); | ||