|
@@ -276,7 +276,7 @@ static int macb_mii_probe(struct net_device *dev)
|
|
|
phydev = phy_find_first(bp->mii_bus);
|
|
|
if (!phydev) {
|
|
|
netdev_err(dev, "no PHY found\n");
|
|
|
- return -1;
|
|
|
+ return -ENXIO;
|
|
|
}
|
|
|
|
|
|
pdata = dev_get_platdata(&bp->pdev->dev);
|
|
@@ -379,9 +379,9 @@ int macb_mii_init(struct macb *bp)
|
|
|
if (err)
|
|
|
goto err_out_free_mdio_irq;
|
|
|
|
|
|
- if (macb_mii_probe(bp->dev) != 0) {
|
|
|
+ err = macb_mii_probe(bp->dev);
|
|
|
+ if (err)
|
|
|
goto err_out_unregister_bus;
|
|
|
- }
|
|
|
|
|
|
return 0;
|
|
|
|