patch-2.1.127 linux/drivers/isdn/hisax/diva.c

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

diff -u --recursive --new-file v2.1.126/linux/drivers/isdn/hisax/diva.c linux/drivers/isdn/hisax/diva.c
@@ -241,13 +241,11 @@
 	cs->hw.diva.ctrl_reg = 0;        /* Reset On */
 	byteout(cs->hw.diva.ctrl, cs->hw.diva.ctrl_reg);
 	current->state = TASK_INTERRUPTIBLE;
-	current->timeout = jiffies + (10 * HZ) / 1000;	/* Timeout 10ms */
-	schedule();
+	schedule_timeout((10*HZ)/1000);	/* Timeout 10ms */
 	cs->hw.diva.ctrl_reg |= DIVA_RESET;  /* Reset Off */
 	byteout(cs->hw.diva.ctrl, cs->hw.diva.ctrl_reg);
 	current->state = TASK_INTERRUPTIBLE;
-	current->timeout = jiffies + (10 * HZ) / 1000;	/* Timeout 10ms */
-	schedule();
+	schedule_timeout((10*HZ)/1000);	/* Timeout 10ms */
 	if (cs->subtyp == DIVA_ISA)
 		cs->hw.diva.ctrl_reg |= DIVA_ISA_LED_A;
 	else

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