X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=drivers%2Fof%2Fof_mdio.c;h=b4748337223b43d28aa7fb11d7eb788ec29d6da4;hb=91bc482ec5a615e8ecebc106aaf7d0c267d511de;hp=18ecae4a4375d461957b04ee8171f1e5e1434b8c;hpb=524df55725217b13d5a232fb5badb5846418ea0e;p=pandora-kernel.git diff --git a/drivers/of/of_mdio.c b/drivers/of/of_mdio.c index 18ecae4a4375..b4748337223b 100644 --- a/drivers/of/of_mdio.c +++ b/drivers/of/of_mdio.c @@ -69,7 +69,7 @@ int of_mdiobus_register(struct mii_bus *mdio, struct device_node *np) } phy = get_phy_device(mdio, be32_to_cpup(addr)); - if (!phy) { + if (!phy || IS_ERR(phy)) { dev_err(&mdio->dev, "error probing PHY at address %i\n", *addr); continue;