From: Bartlomiej Zolnierkiewicz Date: Thu, 24 Jul 2008 20:53:23 +0000 (+0200) Subject: opti621: add ->remove method and module_exit() X-Git-Tag: v2.6.27-rc1~509^2~43 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=adc7f85ae68bd2e8db2e0136dcd4679891e5c321;p=linux-2.6 opti621: add ->remove method and module_exit() Signed-off-by: Bartlomiej Zolnierkiewicz --- diff --git a/drivers/ide/pci/opti621.c b/drivers/ide/pci/opti621.c index edb9132ffb..4895f2ff3f 100644 --- a/drivers/ide/pci/opti621.c +++ b/drivers/ide/pci/opti621.c @@ -223,6 +223,7 @@ static struct pci_driver driver = { .name = "Opti621_IDE", .id_table = opti621_pci_tbl, .probe = opti621_init_one, + .remove = ide_pci_remove, }; static int __init opti621_ide_init(void) @@ -230,7 +231,13 @@ static int __init opti621_ide_init(void) return ide_pci_register_driver(&driver); } +static void __exit opti621_ide_exit(void) +{ + pci_unregister_driver(&driver); +} + module_init(opti621_ide_init); +module_exit(opti621_ide_exit); MODULE_AUTHOR("Jaromir Koutek, Jan Harkes, Mark Lord"); MODULE_DESCRIPTION("PCI driver module for Opti621 IDE");