X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fnet%2Farm%2Fetherh.c;h=d52deb8d20752033da7fdbb7137a4a5fde4df389;hb=43bc926fffd92024b46cafaf7350d669ba9ca884;hp=942a2819576c2efe229c6c6cb71fc4a9c9d79b4f;hpb=cee37fe97739d85991964371c1f3a745c00dd236;p=linux-2.6.git diff --git a/drivers/net/arm/etherh.c b/drivers/net/arm/etherh.c index 942a28195..d52deb8d2 100644 --- a/drivers/net/arm/etherh.c +++ b/drivers/net/arm/etherh.c @@ -46,11 +46,11 @@ #include #include #include +#include #include #include #include -#include #include "../8390.h" @@ -356,7 +356,7 @@ etherh_block_output (struct net_device *dev, int count, const unsigned char *buf dma_start = jiffies; while ((readb (addr + EN0_ISR) & ENISR_RDC) == 0) - if (jiffies - dma_start > 2*HZ/100) { /* 20ms */ + if (time_after(jiffies, dma_start + 2*HZ/100)) { /* 20ms */ printk(KERN_ERR "%s: timeout waiting for TX RDC\n", dev->name); etherh_reset (dev);