patch-2.4.19 linux-2.4.19/drivers/mtd/devices/doc1000.c

Next file: linux-2.4.19/drivers/mtd/devices/mtdram.c
Previous file: linux-2.4.19/drivers/mtd/chips/sharp.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.18/drivers/mtd/devices/doc1000.c linux-2.4.19/drivers/mtd/devices/doc1000.c
@@ -1,6 +1,6 @@
 /*======================================================================
 
-  $Id: doc1000.c,v 1.15 2001/10/02 15:05:13 dwmw2 Exp $
+  $Id: doc1000.c,v 1.16 2001/12/28 22:45:17 dwmw2 Exp $
 
 ======================================================================*/
 
@@ -483,7 +483,7 @@
 			else
 				priv->devstat[erase->dev] = erase->state = MTD_ERASE_PENDING;
 		}
-		else if (erase->time + erase_timeout < jiffies)
+		else if (time_after(jiffies, erase->time + erase_timeout))
 		{
 			printk("Flash erase timed out. The world is broken.\n");
 

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