aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/pci/sis5513.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ide/pci/sis5513.c')
-rw-r--r--drivers/ide/pci/sis5513.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/ide/pci/sis5513.c b/drivers/ide/pci/sis5513.c
index a2330c4ac75b..f3cf7c6c0cc3 100644
--- a/drivers/ide/pci/sis5513.c
+++ b/drivers/ide/pci/sis5513.c
@@ -586,6 +586,12 @@ static int __devinit sis5513_init_one(struct pci_dev *dev, const struct pci_devi
586 return ide_pci_init_one(dev, &d, NULL); 586 return ide_pci_init_one(dev, &d, NULL);
587} 587}
588 588
589static void __devexit sis5513_remove(struct pci_dev *dev)
590{
591 ide_pci_remove(dev);
592 pci_disable_device(dev);
593}
594
589static const struct pci_device_id sis5513_pci_tbl[] = { 595static const struct pci_device_id sis5513_pci_tbl[] = {
590 { PCI_VDEVICE(SI, PCI_DEVICE_ID_SI_5513), 0 }, 596 { PCI_VDEVICE(SI, PCI_DEVICE_ID_SI_5513), 0 },
591 { PCI_VDEVICE(SI, PCI_DEVICE_ID_SI_5518), 0 }, 597 { PCI_VDEVICE(SI, PCI_DEVICE_ID_SI_5518), 0 },
@@ -598,6 +604,7 @@ static struct pci_driver driver = {
598 .name = "SIS_IDE", 604 .name = "SIS_IDE",
599 .id_table = sis5513_pci_tbl, 605 .id_table = sis5513_pci_tbl,
600 .probe = sis5513_init_one, 606 .probe = sis5513_init_one,
607 .remove = sis5513_remove,
601}; 608};
602 609
603static int __init sis5513_ide_init(void) 610static int __init sis5513_ide_init(void)
@@ -605,7 +612,13 @@ static int __init sis5513_ide_init(void)
605 return ide_pci_register_driver(&driver); 612 return ide_pci_register_driver(&driver);
606} 613}
607 614
615static void __exit sis5513_ide_exit(void)
616{
617 pci_unregister_driver(&driver);
618}
619
608module_init(sis5513_ide_init); 620module_init(sis5513_ide_init);
621module_exit(sis5513_ide_exit);
609 622
610MODULE_AUTHOR("Lionel Bouton, L C Chang, Andre Hedrick, Vojtech Pavlik"); 623MODULE_AUTHOR("Lionel Bouton, L C Chang, Andre Hedrick, Vojtech Pavlik");
611MODULE_DESCRIPTION("PCI driver module for SIS IDE"); 624MODULE_DESCRIPTION("PCI driver module for SIS IDE");