patch-2.2.0-pre1 linux/drivers/macintosh/via-pmu.c

Next file: linux/drivers/net/3c523.c
Previous file: linux/drivers/macintosh/macserial.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.132/linux/drivers/macintosh/via-pmu.c linux/drivers/macintosh/via-pmu.c
@@ -894,7 +894,7 @@
 		pmu_enable_backlight(0);
 
 	/* Give the disks a little time to actually finish writing */
-	for (wait = jiffies + (HZ/4); jiffies < wait; )
+	for (wait = jiffies + (HZ/4); time_before(jiffies, wait); )
 		mb();
 
 	/* Disable all interrupts except pmu */

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