Commit c3e072f8 authored by Baruch Siach's avatar Baruch Siach Committed by David S. Miller

net: fsl_pq_mdio: fix non tbi phy access

Since 952c5ca1 (fsl_pq_mdio: Clean up tbi address configuration) .probe returns
-EBUSY when the "tbi-phy" node is missing. Fix this.

Cc: Andy Fleming <afleming@freescale.com>
Signed-off-by: default avatarBaruch Siach <baruch@tkos.co.il>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 452448f9
...@@ -356,16 +356,16 @@ static int fsl_pq_mdio_probe(struct platform_device *ofdev) ...@@ -356,16 +356,16 @@ static int fsl_pq_mdio_probe(struct platform_device *ofdev)
if (prop) if (prop)
tbiaddr = *prop; tbiaddr = *prop;
}
if (tbiaddr == -1) { if (tbiaddr == -1) {
err = -EBUSY; err = -EBUSY;
goto err_free_irqs; goto err_free_irqs;
} else {
out_be32(tbipa, tbiaddr);
}
} }
out_be32(tbipa, tbiaddr);
err = of_mdiobus_register(new_bus, np); err = of_mdiobus_register(new_bus, np);
if (err) { if (err) {
printk (KERN_ERR "%s: Cannot register as MDIO bus\n", printk (KERN_ERR "%s: Cannot register as MDIO bus\n",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment