Skip to content

Commit

Permalink
net: fsl_pq_mdio: fix non tbi phy access
Browse files Browse the repository at this point in the history
Since 952c5ca (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: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Baruch Siach authored and David S. Miller committed Nov 14, 2011
1 parent 452448f commit c3e072f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions drivers/net/ethernet/freescale/fsl_pq_mdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -356,16 +356,16 @@ static int fsl_pq_mdio_probe(struct platform_device *ofdev)

if (prop)
tbiaddr = *prop;
}

if (tbiaddr == -1) {
err = -EBUSY;
if (tbiaddr == -1) {
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);
if (err) {
printk (KERN_ERR "%s: Cannot register as MDIO bus\n",
Expand Down

0 comments on commit c3e072f

Please sign in to comment.