Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 57aabb8c authored by Daniel Palmer's avatar Daniel Palmer Committed by Greg Kroah-Hartman
Browse files

net: amd: mvme147: Fix probe banner message



[ Upstream commit 82c5b53140faf89c31ea2b3a0985a2f291694169 ]

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: default avatarDaniel Palmer <daniel@0x0f.com>
Reviewed-by: default avatarSimon Horman <horms@kernel.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 14b6ca78
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -106,10 +106,6 @@ struct net_device * __init mvme147lance_probe(int unit)
	address = address >> 8;
	dev->dev_addr[3] = address&0xff;

	printk("%s: MVME147 at 0x%08lx, irq %d, Hardware Address %pM\n",
	       dev->name, dev->base_addr, MVME147_LANCE_IRQ,
	       dev->dev_addr);

	lp = netdev_priv(dev);
	lp->ram = __get_dma_pages(GFP_ATOMIC, 3);	/* 32K */
	if (!lp->ram) {
@@ -139,6 +135,9 @@ struct net_device * __init mvme147lance_probe(int unit)
		return ERR_PTR(err);
	}

	netdev_info(dev, "MVME147 at 0x%08lx, irq %d, Hardware Address %pM\n",
		    dev->base_addr, MVME147_LANCE_IRQ, dev->dev_addr);

	return dev;
}