patch-2.1.81 linux/drivers/isdn/hisax/teles3.c

Next file: linux/drivers/misc/parport_init.c
Previous file: linux/drivers/isdn/hisax/teles0.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.80/linux/drivers/isdn/hisax/teles3.c linux/drivers/isdn/hisax/teles3.c
@@ -801,7 +801,7 @@
 	int loop = 0;
 	char tmp[40];
 
-	sp->counter = kstat.interrupts[sp->irq];
+	sp->counter = kstat_irqs(sp->irq);
 	sprintf(tmp, "IRQ %d count %d", sp->irq, sp->counter);
 	debugl1(sp, tmp);
 	clear_pending_ints(sp);
@@ -816,16 +816,16 @@
 			/* At least 1-3 irqs must happen
 			 * (one from HSCX A, one from HSCX B, 3rd from ISAC)
 			 */
-			if (kstat.interrupts[sp->irq] > sp->counter)
+			if (kstat_irqs(sp->irq) > sp->counter)
 				break;
 			current->state = TASK_INTERRUPTIBLE;
 			current->timeout = jiffies + 1;
 			schedule();
 		}
 		sprintf(tmp, "IRQ %d count %d loop %d", sp->irq,
-			kstat.interrupts[sp->irq], loop);
+			kstat_irqs(sp->irq), loop);
 		debugl1(sp, tmp);
-		if (kstat.interrupts[sp->irq] <= sp->counter) {
+		if (kstat_irqs(sp->irq) <= sp->counter) {
 			printk(KERN_WARNING
 			       "Teles3: IRQ(%d) getting no interrupts during init\n",
 			       sp->irq);

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