diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-07-24 16:53:25 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-07-24 16:53:25 -0400 |
commit | 1ceb906b4062954e92295191402e9214345ee0e9 (patch) | |
tree | 06150054a61d7a79eeeec640e274fb614cd2d00b | |
parent | fe3825808ad67af02bd826a0d2ca6831e947e80e (diff) |
sis5513: add ->remove method and module_exit()
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
-rw-r--r-- | drivers/ide/pci/sis5513.c | 13 |
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 | ||
589 | static void __devexit sis5513_remove(struct pci_dev *dev) | ||
590 | { | ||
591 | ide_pci_remove(dev); | ||
592 | pci_disable_device(dev); | ||
593 | } | ||
594 | |||
589 | static const struct pci_device_id sis5513_pci_tbl[] = { | 595 | static 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 | ||
603 | static int __init sis5513_ide_init(void) | 610 | static 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 | ||
615 | static void __exit sis5513_ide_exit(void) | ||
616 | { | ||
617 | pci_unregister_driver(&driver); | ||
618 | } | ||
619 | |||
608 | module_init(sis5513_ide_init); | 620 | module_init(sis5513_ide_init); |
621 | module_exit(sis5513_ide_exit); | ||
609 | 622 | ||
610 | MODULE_AUTHOR("Lionel Bouton, L C Chang, Andre Hedrick, Vojtech Pavlik"); | 623 | MODULE_AUTHOR("Lionel Bouton, L C Chang, Andre Hedrick, Vojtech Pavlik"); |
611 | MODULE_DESCRIPTION("PCI driver module for SIS IDE"); | 624 | MODULE_DESCRIPTION("PCI driver module for SIS IDE"); |