patch-2.1.132 linux/drivers/net/ibmtr.c

Next file: linux/drivers/net/irda/Config.in
Previous file: linux/drivers/net/hp.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.131/linux/drivers/net/ibmtr.c linux/drivers/net/ibmtr.c
@@ -1230,7 +1230,7 @@
 {
 	struct tok_info *ti;
 	short PIOaddr;
-	int i;
+	unsigned long i;
 	PIOaddr = dev->base_addr;
 	ti=(struct tok_info *) dev->priv;
 
@@ -1252,7 +1252,7 @@
 #endif
 
 	outb(0, PIOaddr+ADAPTRESET);
-	for (i=jiffies+TR_RESET_INTERVAL; jiffies<=i;); /* wait 50ms */
+	for (i=jiffies+TR_RESET_INTERVAL; time_before_eq(jiffies, i);); /* wait 50ms */
 	outb(0,PIOaddr+ADAPTRESETREL);
 
 #if !TR_NEWFORMAT

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