Skip to content

Commit 82c5b53

Browse files
fifteenhexdavem330
authored andcommitted
net: amd: mvme147: Fix probe banner message
Currently this driver prints this line with what looks like a rogue format specifier when the device is probed: [ 2.840000] eth%d: MVME147 at 0xfffe1800, irq 12, Hardware Address xx:xx:xx:xx:xx:xx Change the printk() for netdev_info() and move it after the registration has completed so it prints out the name of the interface properly. Signed-off-by: Daniel Palmer <[email protected]> Reviewed-by: Simon Horman <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent a6ad589 commit 82c5b53

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

drivers/net/ethernet/amd/mvme147.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,6 @@ static struct net_device * __init mvme147lance_probe(void)
105105
macaddr[3] = address&0xff;
106106
eth_hw_addr_set(dev, macaddr);
107107

108-
printk("%s: MVME147 at 0x%08lx, irq %d, Hardware Address %pM\n",
109-
dev->name, dev->base_addr, MVME147_LANCE_IRQ,
110-
dev->dev_addr);
111-
112108
lp = netdev_priv(dev);
113109
lp->ram = __get_dma_pages(GFP_ATOMIC, 3); /* 32K */
114110
if (!lp->ram) {
@@ -138,6 +134,9 @@ static struct net_device * __init mvme147lance_probe(void)
138134
return ERR_PTR(err);
139135
}
140136

137+
netdev_info(dev, "MVME147 at 0x%08lx, irq %d, Hardware Address %pM\n",
138+
dev->base_addr, MVME147_LANCE_IRQ, dev->dev_addr);
139+
141140
return dev;
142141
}
143142

0 commit comments

Comments
 (0)