mISDN: Free hfcpci IRQ if init was not successful
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>
This commit is contained in:
parent
1ce1513f48
commit
cdae28e1a2
1 changed files with 3 additions and 4 deletions
|
@ -1806,10 +1806,9 @@ init_card(struct hfc_pci *hc)
|
||||||
printk(KERN_WARNING
|
printk(KERN_WARNING
|
||||||
"HFC PCI: IRQ(%d) getting no interrupts "
|
"HFC PCI: IRQ(%d) getting no interrupts "
|
||||||
"during init %d\n", hc->irq, 4 - cnt);
|
"during init %d\n", hc->irq, 4 - cnt);
|
||||||
if (cnt == 1) {
|
if (cnt == 1)
|
||||||
spin_unlock_irqrestore(&hc->lock, flags);
|
break;
|
||||||
return -EIO;
|
else {
|
||||||
} else {
|
|
||||||
reset_hfcpci(hc);
|
reset_hfcpci(hc);
|
||||||
cnt--;
|
cnt--;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue