Skip to content

Commit

Permalink
mISDN: Free hfcpci IRQ if init was not successful
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
andim2 authored and Karsten Keil committed Jun 11, 2009
1 parent 1ce1513 commit cdae28e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions drivers/isdn/hardware/mISDN/hfcpci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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--;
}
Expand Down

0 comments on commit cdae28e

Please sign in to comment.