aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/3c515.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/3c515.c')
-rw-r--r--drivers/net/3c515.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/net/3c515.c b/drivers/net/3c515.c
index 3bba835f1a21..d2bb4b254c57 100644
--- a/drivers/net/3c515.c
+++ b/drivers/net/3c515.c
@@ -98,7 +98,7 @@ static int rx_nocopy, rx_copy, queued_packet;
98#define WAIT_TX_AVAIL 200 98#define WAIT_TX_AVAIL 200
99 99
100/* Operational parameter that usually are not changed. */ 100/* Operational parameter that usually are not changed. */
101#define TX_TIMEOUT 40 /* Time in jiffies before concluding Tx hung */ 101#define TX_TIMEOUT ((4*HZ)/10) /* Time in jiffies before concluding Tx hung */
102 102
103/* The size here is somewhat misleading: the Corkscrew also uses the ISA 103/* The size here is somewhat misleading: the Corkscrew also uses the ISA
104 aliased registers at <base>+0x400. 104 aliased registers at <base>+0x400.
@@ -662,7 +662,9 @@ static int corkscrew_setup(struct net_device *dev, int ioaddr,
662 pr_warning(" *** Warning: this IRQ is unlikely to work! ***\n"); 662 pr_warning(" *** Warning: this IRQ is unlikely to work! ***\n");
663 663
664 { 664 {
665 char *ram_split[] = { "5:3", "3:1", "1:1", "3:5" }; 665 static const char * const ram_split[] = {
666 "5:3", "3:1", "1:1", "3:5"
667 };
666 __u32 config; 668 __u32 config;
667 EL3WINDOW(3); 669 EL3WINDOW(3);
668 vp->available_media = inw(ioaddr + Wn3_Options); 670 vp->available_media = inw(ioaddr + Wn3_Options);
@@ -734,7 +736,7 @@ static int corkscrew_open(struct net_device *dev)
734 init_timer(&vp->timer); 736 init_timer(&vp->timer);
735 vp->timer.expires = jiffies + media_tbl[dev->if_port].wait; 737 vp->timer.expires = jiffies + media_tbl[dev->if_port].wait;
736 vp->timer.data = (unsigned long) dev; 738 vp->timer.data = (unsigned long) dev;
737 vp->timer.function = &corkscrew_timer; /* timer handler */ 739 vp->timer.function = corkscrew_timer; /* timer handler */
738 add_timer(&vp->timer); 740 add_timer(&vp->timer);
739 } else 741 } else
740 dev->if_port = vp->default_media; 742 dev->if_port = vp->default_media;