From: Bartlomiej Zolnierkiewicz Date: Thu, 24 Jul 2008 20:53:20 +0000 (+0200) Subject: cmd64x: add ->remove method and module_exit() X-Git-Tag: MMI-PSA29.97-13-9~33097^2~54 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e2b15b4765ca032d0837dfc8c195ecd3bc56a433;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git cmd64x: add ->remove method and module_exit() Cc: Sergei Shtylyov Signed-off-by: Bartlomiej Zolnierkiewicz --- 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 = { .name = "CMD64x_IDE", .id_table = cmd64x_pci_tbl, .probe = cmd64x_init_one, + .remove = ide_pci_remove, }; static int __init cmd64x_ide_init(void) @@ -512,7 +513,13 @@ static int __init cmd64x_ide_init(void) return ide_pci_register_driver(&driver); } +static void __exit cmd64x_ide_exit(void) +{ + pci_unregister_driver(&driver); +} + module_init(cmd64x_ide_init); +module_exit(cmd64x_ide_exit); MODULE_AUTHOR("Eddie Dost, David Miller, Andre Hedrick"); MODULE_DESCRIPTION("PCI driver module for CMD64x IDE");