patch-2.1.132 linux/drivers/sound/pss.c

Next file: linux/drivers/sound/sb_audio.c
Previous file: linux/drivers/sound/opl3sa2.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.131/linux/drivers/sound/pss.c linux/drivers/sound/pss.c
@@ -135,7 +135,7 @@
 	 * loops.
 	 */
 
-	for (i = 0; i < 5000000 && jiffies < limit; i++)
+	for (i = 0; i < 5000000 && time_before(jiffies, limit); i++)
  	{
  		if (inw(REG(PSS_STATUS)) & PSS_WRITE_EMPTY)
  		{
@@ -285,7 +285,7 @@
 		outw(0x00fe, REG(PSS_DATA));
 
 		limit = jiffies + HZ/10;
-		for (i = 0; i < 32768 && jiffies < limit; i++)
+		for (i = 0; i < 32768 && time_before(jiffies, limit); i++)
 			if (inw(REG(PSS_DATA)) == 0x5500)
 				break;
 

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