lkml.org 
[lkml]   [2009]   [Jun]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    Subject[PATCH 3/6] mISDN: Free hfcpci IRQ if init was not successful
    From
    From: Andreas Mohr <andi@lisas.de>

    If we get no interrupts for after 3 resets we need to unregister
    the interrupt function, which is already done outside the loop.

    Signed-off-by: Andreas Mohr <andi@lisas.de>
    Signed-off-by: Karsten Keil <keil@b1-systems.de>
    ---
    drivers/isdn/hardware/mISDN/hfcpci.c | 7 +++----
    1 files changed, 3 insertions(+), 4 deletions(-)

    diff --git a/drivers/isdn/hardware/mISDN/hfcpci.c b/drivers/isdn/hardware/mISDN/hfcpci.c
    index 776afc8..228ffbe 100644
    --- a/drivers/isdn/hardware/mISDN/hfcpci.c
    +++ b/drivers/isdn/hardware/mISDN/hfcpci.c
    @@ -1806,10 +1806,9 @@ init_card(struct hfc_pci *hc)
    printk(KERN_WARNING
    "HFC PCI: IRQ(%d) getting no interrupts "
    "during init %d\n", hc->irq, 4 - cnt);
    - if (cnt == 1) {
    - spin_unlock_irqrestore(&hc->lock, flags);
    - return -EIO;
    - } else {
    + if (cnt == 1)
    + break;
    + else {
    reset_hfcpci(hc);
    cnt--;
    }
    --
    1.6.0.2


    \
     
     \ /
      Last update: 2009-06-11 19:33    [W:2.121 / U:0.024 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site