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

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

diff -u --recursive --new-file v2.1.80/linux/drivers/isdn/hisax/teles0.c linux/drivers/isdn/hisax/teles0.c
@@ -802,7 +802,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);
@@ -815,16 +815,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", sp->irq,
-			kstat.interrupts[sp->irq]);
+			kstat_irqs(sp->irq));
 		debugl1(sp, tmp);
-		if (kstat.interrupts[sp->irq] == sp->counter) {
+		if (kstat_irqs(sp->irq) == sp->counter) {
 			printk(KERN_WARNING
 			       "Teles0: 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