Re: [PATCH 3/8] net: ehernet: ixp4xx: Use devm_alloc_etherdev()

2019-05-24 Thread Andrew Lunn
> @@ -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,

[PATCH 3/8] net: ehernet: ixp4xx: Use devm_alloc_etherdev()

2019-05-24 Thread Linus Walleij
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