Messages in this thread Patch in this message | | | From | Jeff Garzik <> | Subject | [PATCH 10/16] [ISDN] HiSax acm_pci: fix module unload | Date | Mon, 29 Oct 2007 15:39:09 -0400 (EDT) |
| |
Signed-off-by: Jeff Garzik <jeff@garzik.org> --- drivers/isdn/hisax/avm_pci.c | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/drivers/isdn/hisax/avm_pci.c b/drivers/isdn/hisax/avm_pci.c index 5fc4c0c..4fd3c0b 100644 --- a/drivers/isdn/hisax/avm_pci.c +++ b/drivers/isdn/hisax/avm_pci.c @@ -1015,7 +1015,18 @@ err_out_isa: static void __exit avm_mod_exit(void) { +#ifdef CONFIG_PCI pci_unregister_driver(&avm_pci_driver); +#endif /* CONFIG_PCI */ + +#ifdef CONFIG_ISA + if (avm_irq && avm_io_base) + isa_unregister_driver(&avm_isa_driver); +#ifdef CONFIG_PNP + else + pnp_unregister_driver(&avm_pnp_driver); +#endif /* CONFIG_PNP */ +#endif /* CONFIG_ISA */ } module_init(avm_mod_init); -- 1.5.2.4 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |