patch-2.3.99-pre7 linux/drivers/net/es3210.c
Next file: linux/drivers/net/eth16i.c
Previous file: linux/drivers/net/epic100.c
Back to the patch index
Back to the overall index
- Lines: 20
- Date:
Thu May 4 11:31:21 2000
- Orig file:
v2.3.99-pre6/linux/drivers/net/es3210.c
- Orig date:
Thu Nov 11 20:11:40 1999
diff -u --recursive --new-file v2.3.99-pre6/linux/drivers/net/es3210.c linux/drivers/net/es3210.c
@@ -382,10 +382,9 @@
#ifdef MODULE
#define MAX_ES_CARDS 4 /* Max number of ES3210 cards per module */
#define NAMELEN 8 /* # of chars for storing dev->name */
-static char namelist[NAMELEN * MAX_ES_CARDS] = { 0, };
static struct net_device dev_es3210[MAX_ES_CARDS] = {
{
- NULL, /* assign a chunk of namelist[] below */
+ "", /* device name is inserted by net_init.c */
0, 0, 0, 0,
0, 0,
0, 0, 0, NULL, NULL
@@ -407,7 +406,6 @@
for (this_dev = 0; this_dev < MAX_ES_CARDS; this_dev++) {
struct net_device *dev = &dev_es3210[this_dev];
- dev->name = namelist+(NAMELEN*this_dev);
dev->irq = irq[this_dev];
dev->base_addr = io[this_dev];
dev->mem_start = mem[this_dev]; /* Currently ignored by driver */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)