patch-2.3.99-pre7 linux/drivers/net/hamradio/baycom_ser_hdx.c
Next file: linux/drivers/net/hamradio/bpqether.c
Previous file: linux/drivers/net/hamradio/baycom_ser_fdx.c
Back to the patch index
Back to the overall index
- Lines: 26
- Date:
Thu May 4 11:31:21 2000
- Orig file:
v2.3.99-pre6/linux/drivers/net/hamradio/baycom_ser_hdx.c
- Orig date:
Tue Mar 14 19:10:39 2000
diff -u --recursive --new-file v2.3.99-pre6/linux/drivers/net/hamradio/baycom_ser_hdx.c linux/drivers/net/hamradio/baycom_ser_hdx.c
@@ -661,8 +661,6 @@
int i, j, found = 0;
char set_hw = 1;
struct baycom_state *bc;
- char ifname[HDLCDRV_IFNAMELEN];
-
printk(bc_drvinfo);
/*
@@ -670,14 +668,14 @@
*/
for (i = 0; i < NR_PORTS; i++) {
struct net_device *dev = baycom_device+i;
- sprintf(ifname, "bcsh%d", i);
+ sprintf(dev->name, "bcsh%d", i);
if (!mode[i])
set_hw = 0;
if (!set_hw)
iobase[i] = irq[i] = 0;
j = hdlcdrv_register_hdlcdrv(dev, &ser12_ops, sizeof(struct baycom_state),
- ifname, iobase[i], irq[i], 0);
+ dev->name, iobase[i], irq[i], 0);
if (!j) {
bc = (struct baycom_state *)dev->priv;
if (set_hw && baycom_setmode(bc, mode[i]))
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)