diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-07-24 16:53:20 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-07-24 16:53:20 -0400 |
commit | e2b15b4765ca032d0837dfc8c195ecd3bc56a433 (patch) | |
tree | 0c09925e328911a580bf68941cf40ccbd2d2763f /drivers | |
parent | f354fbc4b45a730aa0f876322ea4f096b47d1013 (diff) |
cmd64x: add ->remove method and module_exit()
Cc: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/ide/pci/cmd64x.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/ide/pci/cmd64x.c b/drivers/ide/pci/cmd64x.c index 4eebcf09e0d8..0a4d194bc35f 100644 --- a/drivers/ide/pci/cmd64x.c +++ b/drivers/ide/pci/cmd64x.c | |||
@@ -505,6 +505,7 @@ static struct pci_driver driver = { | |||
505 | .name = "CMD64x_IDE", | 505 | .name = "CMD64x_IDE", |
506 | .id_table = cmd64x_pci_tbl, | 506 | .id_table = cmd64x_pci_tbl, |
507 | .probe = cmd64x_init_one, | 507 | .probe = cmd64x_init_one, |
508 | .remove = ide_pci_remove, | ||
508 | }; | 509 | }; |
509 | 510 | ||
510 | static int __init cmd64x_ide_init(void) | 511 | static int __init cmd64x_ide_init(void) |
@@ -512,7 +513,13 @@ static int __init cmd64x_ide_init(void) | |||
512 | return ide_pci_register_driver(&driver); | 513 | return ide_pci_register_driver(&driver); |
513 | } | 514 | } |
514 | 515 | ||
516 | static void __exit cmd64x_ide_exit(void) | ||
517 | { | ||
518 | pci_unregister_driver(&driver); | ||
519 | } | ||
520 | |||
515 | module_init(cmd64x_ide_init); | 521 | module_init(cmd64x_ide_init); |
522 | module_exit(cmd64x_ide_exit); | ||
516 | 523 | ||
517 | MODULE_AUTHOR("Eddie Dost, David Miller, Andre Hedrick"); | 524 | MODULE_AUTHOR("Eddie Dost, David Miller, Andre Hedrick"); |
518 | MODULE_DESCRIPTION("PCI driver module for CMD64x IDE"); | 525 | MODULE_DESCRIPTION("PCI driver module for CMD64x IDE"); |