patch-2.3.27 linux/drivers/net/bmac.c
Next file: linux/drivers/net/dgrs.c
Previous file: linux/drivers/net/acenic.c
Back to the patch index
Back to the overall index
- Lines: 43
- Date:
Tue Nov 9 08:20:12 1999
- Orig file:
v2.3.26/linux/drivers/net/bmac.c
- Orig date:
Mon Nov 1 13:56:26 1999
diff -u --recursive --new-file v2.3.26/linux/drivers/net/bmac.c linux/drivers/net/bmac.c
@@ -1256,14 +1256,14 @@
return 1;
}
-int
-bmac_probe(struct net_device *dev)
+int bmac_probe(void)
{
int j, rev;
struct bmac_data *bp;
struct device_node *bmacs;
unsigned char *addr;
static struct device_node *all_bmacs = NULL, *next_bmac;
+ struct net_device *dev = NULL;
if (all_bmacs == NULL) {
all_bmacs = find_devices("bmac");
@@ -1292,14 +1292,8 @@
return -EINVAL;
}
- if (dev == NULL) {
- dev = init_etherdev(NULL, PRIV_BYTES);
- bmac_devs = dev; /*KLUDGE!!*/
- } else {
- /* XXX this doesn't look right (but it's never used :-) */
- dev->priv = kmalloc(PRIV_BYTES, GFP_KERNEL);
- if (dev->priv == 0) return -ENOMEM;
- }
+ dev = init_etherdev(NULL, PRIV_BYTES);
+ bmac_devs = dev; /*KLUDGE!!*/
#ifdef MODULE
bmac_devs = dev;
@@ -1610,7 +1604,7 @@
if(bmac_devs != NULL)
return -EBUSY;
- res = bmac_probe(NULL);
+ res = bmac_probe();
return res;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)