patch-2.4.0-test10 linux/drivers/net/ne.c
Next file: linux/drivers/net/ne2.c
Previous file: linux/drivers/net/natsemi.c
Back to the patch index
Back to the overall index
- Lines: 58
- Date:
Mon Oct 30 12:24:21 2000
- Orig file:
v2.4.0-test9/linux/drivers/net/ne.c
- Orig date:
Sat Jul 8 19:38:16 2000
diff -u --recursive --new-file v2.4.0-test9/linux/drivers/net/ne.c linux/drivers/net/ne.c
@@ -175,11 +175,6 @@
E2010 starts at 0x100 and ends at 0x4000.
E2010-x starts at 0x100 and ends at 0xffff. */
-#ifdef HAVE_DEVLIST
-struct netdev_entry netcard_drv =
-{"ne", ne_probe1, NE_IO_EXTENT, netcard_portlist};
-#else
-
/*
* Note that at boot, this probe only picks up one card at a time, even for
* multiple PCI ne2k cards. Use "ether=0,0,eth1" if you have a second PCI
@@ -220,7 +215,6 @@
return -ENODEV;
}
-#endif
#ifdef CONFIG_PCI
static int __init ne_probe_pci(struct net_device *dev)
@@ -328,13 +322,6 @@
}
}
- /* We should have a "dev" from Space.c or the static module table. */
- if (dev == NULL)
- {
- printk(KERN_ERR "ne.c: Passed a NULL device.\n");
- dev = init_etherdev(0, 0);
- }
-
if (ei_debug && version_printed++ == 0)
printk(version);
@@ -805,19 +792,10 @@
#ifdef MODULE
#define MAX_NE_CARDS 4 /* Max number of NE cards per module */
-#define NAMELEN 8 /* # of chars for storing dev->name */
-static struct net_device dev_ne[MAX_NE_CARDS] = {
- {
- "",
- 0, 0, 0, 0,
- 0, 0,
- 0, 0, 0, NULL, NULL
- },
-};
-
-static int io[MAX_NE_CARDS] = { 0, };
-static int irq[MAX_NE_CARDS] = { 0, };
-static int bad[MAX_NE_CARDS] = { 0, }; /* 0xbad = bad sig or no reset ack */
+static struct net_device dev_ne[MAX_NE_CARDS];
+static int io[MAX_NE_CARDS];
+static int irq[MAX_NE_CARDS];
+static int bad[MAX_NE_CARDS]; /* 0xbad = bad sig or no reset ack */
MODULE_PARM(io, "1-" __MODULE_STRING(MAX_NE_CARDS) "i");
MODULE_PARM(irq, "1-" __MODULE_STRING(MAX_NE_CARDS) "i");
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)