diff options
Diffstat (limited to 'drivers/net/hamradio/baycom_ser_hdx.c')
-rw-r--r-- | drivers/net/hamradio/baycom_ser_hdx.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/hamradio/baycom_ser_hdx.c b/drivers/net/hamradio/baycom_ser_hdx.c index 111373ca9..80483a171 100644 --- a/drivers/net/hamradio/baycom_ser_hdx.c +++ b/drivers/net/hamradio/baycom_ser_hdx.c @@ -661,8 +661,6 @@ static int __init init_baycomserhdx(void) int i, j, found = 0; char set_hw = 1; struct baycom_state *bc; - char ifname[HDLCDRV_IFNAMELEN]; - printk(bc_drvinfo); /* @@ -670,14 +668,14 @@ static int __init init_baycomserhdx(void) */ 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])) |