patch-2.2.18 linux/drivers/net/ltpc.c

Next file: linux/drivers/net/mac8390.c
Previous file: linux/drivers/net/lmc/lmc_main.c
Back to the patch index
Back to the overall index

diff -u --new-file --recursive --exclude-from /usr/src/exclude v2.2.17/drivers/net/ltpc.c linux/drivers/net/ltpc.c
@@ -353,13 +353,12 @@
 	/* returns true if it stayed c */
 	/* this uses base+6, but it's ok */
 	int i;
-	int timeout;
 
 	/* twenty second or so total */
 
-	for(i=0;i<20000;i++) {
+	for(i=0;i<200000;i++) {
 		if ( c != inb_p(dev->base_addr+6) ) return 0;
-		for(timeout=loops_per_sec/1000; timeout > 0; timeout--) ;
+		udelay(100);
 	}
 	return 1; /* timed out */
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)