diff options
Diffstat (limited to 'drivers/net/3c59x.c')
-rw-r--r-- | drivers/net/3c59x.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/3c59x.c b/drivers/net/3c59x.c index 7f47124f118d..5d11a06ecb2c 100644 --- a/drivers/net/3c59x.c +++ b/drivers/net/3c59x.c | |||
@@ -258,6 +258,7 @@ static int vortex_debug = 1; | |||
258 | #include <linux/highmem.h> | 258 | #include <linux/highmem.h> |
259 | #include <linux/eisa.h> | 259 | #include <linux/eisa.h> |
260 | #include <linux/bitops.h> | 260 | #include <linux/bitops.h> |
261 | #include <linux/jiffies.h> | ||
261 | #include <asm/irq.h> /* For NR_IRQS only. */ | 262 | #include <asm/irq.h> /* For NR_IRQS only. */ |
262 | #include <asm/io.h> | 263 | #include <asm/io.h> |
263 | #include <asm/uaccess.h> | 264 | #include <asm/uaccess.h> |
@@ -841,7 +842,7 @@ enum xcvr_types { | |||
841 | XCVR_100baseFx, XCVR_MII=6, XCVR_NWAY=8, XCVR_ExtMII=9, XCVR_Default=10, | 842 | XCVR_100baseFx, XCVR_MII=6, XCVR_NWAY=8, XCVR_ExtMII=9, XCVR_Default=10, |
842 | }; | 843 | }; |
843 | 844 | ||
844 | static struct media_table { | 845 | static const struct media_table { |
845 | char *name; | 846 | char *name; |
846 | unsigned int media_bits:16, /* Bits to set in Wn4_Media register. */ | 847 | unsigned int media_bits:16, /* Bits to set in Wn4_Media register. */ |
847 | mask:8, /* The transceiver-present bit in Wn3_Config.*/ | 848 | mask:8, /* The transceiver-present bit in Wn3_Config.*/ |
@@ -1445,7 +1446,7 @@ static int __devinit vortex_probe1(struct device *gendev, | |||
1445 | } | 1446 | } |
1446 | 1447 | ||
1447 | { | 1448 | { |
1448 | static const char * ram_split[] = {"5:3", "3:1", "1:1", "3:5"}; | 1449 | static const char * const ram_split[] = {"5:3", "3:1", "1:1", "3:5"}; |
1449 | unsigned int config; | 1450 | unsigned int config; |
1450 | EL3WINDOW(3); | 1451 | EL3WINDOW(3); |
1451 | vp->available_media = ioread16(ioaddr + Wn3_Options); | 1452 | vp->available_media = ioread16(ioaddr + Wn3_Options); |
@@ -2724,7 +2725,7 @@ boomerang_rx(struct net_device *dev) | |||
2724 | skb = dev_alloc_skb(PKT_BUF_SZ); | 2725 | skb = dev_alloc_skb(PKT_BUF_SZ); |
2725 | if (skb == NULL) { | 2726 | if (skb == NULL) { |
2726 | static unsigned long last_jif; | 2727 | static unsigned long last_jif; |
2727 | if ((jiffies - last_jif) > 10 * HZ) { | 2728 | if (time_after(jiffies, last_jif + 10 * HZ)) { |
2728 | printk(KERN_WARNING "%s: memory shortage\n", dev->name); | 2729 | printk(KERN_WARNING "%s: memory shortage\n", dev->name); |
2729 | last_jif = jiffies; | 2730 | last_jif = jiffies; |
2730 | } | 2731 | } |