> @@ -1481,8 +1478,8 @@ static int ixp4xx_eth_probe(struct platform_device
> *pdev)
> if ((err = register_netdev(ndev)))
> goto err_phy_dis;
>
> - printk(KERN_INFO "%s: MII PHY %i on %s\n", ndev->name, plat->phy,
> -npe_name(port->npe));
> + dev_info(dev,
Using the devm_alloc_etherdev() function simplifies the error
path. I also patch the message to use dev_info().
Signed-off-by: Linus Walleij
---
drivers/net/ethernet/xscale/ixp4xx_eth.c | 18 ++
1 file changed, 6 insertions(+), 12 deletions(-)
diff --git a/drivers/net/ethernet/x