lkml.org 
[lkml]   [2007]   [Oct]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 10/16] [ISDN] HiSax acm_pci: fix module unload
    Date
    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/

    \
     
     \ /
      Last update: 2007-10-29 20:45    [W:3.885 / U:1.392 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site