git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fedora kernel-2.6.17-1.2142_FC4 patched with stable patch-2.6.17.4-vs2.0.2-rc26.diff
[linux-2.6.git]
/
drivers
/
net
/
seeq8005.c
diff --git
a/drivers/net/seeq8005.c
b/drivers/net/seeq8005.c
index
79dca39
..
bcef03f
100644
(file)
--- a/
drivers/net/seeq8005.c
+++ b/
drivers/net/seeq8005.c
@@
-46,6
+46,7
@@
static const char version[] =
#include <linux/etherdevice.h>
#include <linux/skbuff.h>
#include <linux/bitops.h>
#include <linux/etherdevice.h>
#include <linux/skbuff.h>
#include <linux/bitops.h>
+#include <linux/jiffies.h>
#include <asm/system.h>
#include <asm/io.h>
#include <asm/system.h>
#include <asm/io.h>
@@
-699,7
+700,7
@@
static void hardware_send_packet(struct net_device * dev, char *buf, int length)
int ioaddr = dev->base_addr;
int status = inw(SEEQ_STATUS);
int transmit_ptr = 0;
int ioaddr = dev->base_addr;
int status = inw(SEEQ_STATUS);
int transmit_ptr = 0;
-
int
tmp;
+
unsigned long
tmp;
if (net_debug>4) {
printk("%s: send 0x%04x\n",dev->name,length);
if (net_debug>4) {
printk("%s: send 0x%04x\n",dev->name,length);
@@
-724,7
+725,7
@@
static void hardware_send_packet(struct net_device * dev, char *buf, int length)
/* drain FIFO */
tmp = jiffies;
/* drain FIFO */
tmp = jiffies;
- while ( (((status=inw(SEEQ_STATUS)) & SEEQSTAT_FIFO_EMPTY) == 0) &&
(jiffies - tmp <
HZ))
+ while ( (((status=inw(SEEQ_STATUS)) & SEEQSTAT_FIFO_EMPTY) == 0) &&
time_before(jiffies, tmp +
HZ))
mb();
/* doit ! */
mb();
/* doit ! */