aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/oaknet.c
diff options
context:
space:
mode:
authorJohn W. Linville <linville@tuxdriver.com>2006-02-17 08:15:41 -0500
committerJohn W. Linville <linville@tuxdriver.com>2006-02-17 08:15:41 -0500
commit750b50ab5687125d8a1dc946d931b00acf016e2c (patch)
treeeacec989ec38e67da84fcc6842b364670d7a1e34 /drivers/net/oaknet.c
parentab479995b191b4256183956c13caabb86331af8e (diff)
parent70c07e02625ec46d0ffbfce1acef42d660803528 (diff)
Merge branch 'upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/jgarzik/netdev-2.6
Diffstat (limited to 'drivers/net/oaknet.c')
-rw-r--r--drivers/net/oaknet.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/oaknet.c b/drivers/net/oaknet.c
index 62167a29debe..d0f686d6eaaa 100644
--- a/drivers/net/oaknet.c
+++ b/drivers/net/oaknet.c
@@ -20,6 +20,7 @@
20#include <linux/netdevice.h> 20#include <linux/netdevice.h>
21#include <linux/etherdevice.h> 21#include <linux/etherdevice.h>
22#include <linux/init.h> 22#include <linux/init.h>
23#include <linux/jiffies.h>
23 24
24#include <asm/board.h> 25#include <asm/board.h>
25#include <asm/io.h> 26#include <asm/io.h>
@@ -606,7 +607,7 @@ retry:
606#endif 607#endif
607 608
608 while ((ei_ibp(base + EN0_ISR) & ENISR_RDC) == 0) { 609 while ((ei_ibp(base + EN0_ISR) & ENISR_RDC) == 0) {
609 if (jiffies - start > OAKNET_WAIT) { 610 if (time_after(jiffies, start + OAKNET_WAIT)) {
610 printk("%s: timeout waiting for Tx RDC.\n", dev->name); 611 printk("%s: timeout waiting for Tx RDC.\n", dev->name);
611 oaknet_reset_8390(dev); 612 oaknet_reset_8390(dev);
612 NS8390_init(dev, TRUE); 613 NS8390_init(dev, TRUE);