[PATCH] drivers/net/*: use time_after() and friends
[deliverable/linux.git] / drivers / net / pcmcia / 3c589_cs.c
index 1c3c9c666f741a9e7cbeb80627b2f7776d33e79b..c4abc9365f8ea84eec3d251c477931d78d32ae53 100644 (file)
@@ -39,6 +39,7 @@
 #include <linux/if_arp.h>
 #include <linux/ioport.h>
 #include <linux/bitops.h>
+#include <linux/jiffies.h>
 
 #include <pcmcia/cs_types.h>
 #include <pcmcia/cs.h>
@@ -796,7 +797,7 @@ static void media_check(unsigned long arg)
     media = inw(ioaddr+WN4_MEDIA) & 0xc810;
 
     /* Ignore collisions unless we've had no irq's recently */
-    if (jiffies - lp->last_irq < HZ) {
+    if (time_before(jiffies, lp->last_irq + HZ)) {
        media &= ~0x0010;
     } else {
        /* Try harder to detect carrier errors */
This page took 0.025764 seconds and 5 git commands to generate.