patch-2.1.62 linux/drivers/isdn/hisax/isdnl1.c

Next file: linux/drivers/isdn/hisax/ix1_micro.c
Previous file: linux/drivers/isdn/hisax/elsa.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.61/linux/drivers/isdn/hisax/isdnl1.c linux/drivers/isdn/hisax/isdnl1.c
@@ -766,13 +766,12 @@
 	save_flags(flags);
 	cli();
 	if (request_irq(card->sp->irq, routine,
-			I4L_IRQ_FLAG, "HiSax", NULL)) {
+			I4L_IRQ_FLAG, "HiSax", card->sp)) {
 		printk(KERN_WARNING "HiSax: couldn't get interrupt %d\n",
 		       card->sp->irq);
 		restore_flags(flags);
 		return (0);
 	}
-	irq2dev_map[card->sp->irq] = (void *) card->sp;
 	restore_flags(flags);
 	return (1);
 }
@@ -782,8 +781,7 @@
 {
 	struct IsdnCard *card = cards + cardnr;
 
-	irq2dev_map[card->sp->irq] = NULL;
-	free_irq(card->sp->irq, NULL);
+	free_irq(card->sp->irq, card->sp);
 }
 
 void

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov