diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-07-24 16:53:19 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-07-24 16:53:19 -0400 |
commit | eb7cb98b1cc8be1d4395d9accf49ae3924cd68f1 (patch) | |
tree | a6e21a30b5773026132c49af8e9858a8af98a3aa | |
parent | ef0b04276d8f719d754c092434fbd62c2aeb5307 (diff) |
aec62xx: add ->remove method and module_exit()
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
-rw-r--r-- | drivers/ide/pci/aec62xx.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/ide/pci/aec62xx.c b/drivers/ide/pci/aec62xx.c index 7ca7989bc35d..253299961a14 100644 --- a/drivers/ide/pci/aec62xx.c +++ b/drivers/ide/pci/aec62xx.c | |||
@@ -280,6 +280,12 @@ static int __devinit aec62xx_init_one(struct pci_dev *dev, const struct pci_devi | |||
280 | return err; | 280 | return err; |
281 | } | 281 | } |
282 | 282 | ||
283 | static void __devexit aec62xx_remove(struct pci_dev *dev) | ||
284 | { | ||
285 | ide_pci_remove(dev); | ||
286 | pci_disable_device(dev); | ||
287 | } | ||
288 | |||
283 | static const struct pci_device_id aec62xx_pci_tbl[] = { | 289 | static const struct pci_device_id aec62xx_pci_tbl[] = { |
284 | { PCI_VDEVICE(ARTOP, PCI_DEVICE_ID_ARTOP_ATP850UF), 0 }, | 290 | { PCI_VDEVICE(ARTOP, PCI_DEVICE_ID_ARTOP_ATP850UF), 0 }, |
285 | { PCI_VDEVICE(ARTOP, PCI_DEVICE_ID_ARTOP_ATP860), 1 }, | 291 | { PCI_VDEVICE(ARTOP, PCI_DEVICE_ID_ARTOP_ATP860), 1 }, |
@@ -294,6 +300,7 @@ static struct pci_driver driver = { | |||
294 | .name = "AEC62xx_IDE", | 300 | .name = "AEC62xx_IDE", |
295 | .id_table = aec62xx_pci_tbl, | 301 | .id_table = aec62xx_pci_tbl, |
296 | .probe = aec62xx_init_one, | 302 | .probe = aec62xx_init_one, |
303 | .remove = aec62xx_remove, | ||
297 | }; | 304 | }; |
298 | 305 | ||
299 | static int __init aec62xx_ide_init(void) | 306 | static int __init aec62xx_ide_init(void) |
@@ -301,7 +308,13 @@ static int __init aec62xx_ide_init(void) | |||
301 | return ide_pci_register_driver(&driver); | 308 | return ide_pci_register_driver(&driver); |
302 | } | 309 | } |
303 | 310 | ||
311 | static void __exit aec62xx_ide_exit(void) | ||
312 | { | ||
313 | pci_unregister_driver(&driver); | ||
314 | } | ||
315 | |||
304 | module_init(aec62xx_ide_init); | 316 | module_init(aec62xx_ide_init); |
317 | module_exit(aec62xx_ide_exit); | ||
305 | 318 | ||
306 | MODULE_AUTHOR("Andre Hedrick"); | 319 | MODULE_AUTHOR("Andre Hedrick"); |
307 | MODULE_DESCRIPTION("PCI driver module for ARTOP AEC62xx IDE"); | 320 | MODULE_DESCRIPTION("PCI driver module for ARTOP AEC62xx IDE"); |