aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/freescale
diff options
context:
space:
mode:
authorBaruch Siach <baruch@tkos.co.il>2011-11-14 01:21:30 -0500
committerDavid S. Miller <davem@davemloft.net>2011-11-14 01:44:55 -0500
commitc3e072f8a6c5625028531c40ec65f7e301531be2 (patch)
tree155c46596bcb18fba1067dcb2bb8dc776ac8b5b0 /drivers/net/ethernet/freescale
parent452448f9283e1939408b397e87974a418825b0a8 (diff)
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: Baruch Siach <baruch@tkos.co.il> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/freescale')
-rw-r--r--drivers/net/ethernet/freescale/fsl_pq_mdio.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/ethernet/freescale/fsl_pq_mdio.c b/drivers/net/ethernet/freescale/fsl_pq_mdio.c
index 4d9f84b8ab97..8dee1aed47e4 100644
--- a/drivers/net/ethernet/freescale/fsl_pq_mdio.c
+++ b/drivers/net/ethernet/freescale/fsl_pq_mdio.c
@@ -356,16 +356,16 @@ static int fsl_pq_mdio_probe(struct platform_device *ofdev)
356 356
357 if (prop) 357 if (prop)
358 tbiaddr = *prop; 358 tbiaddr = *prop;
359 }
360 359
361 if (tbiaddr == -1) { 360 if (tbiaddr == -1) {
362 err = -EBUSY; 361 err = -EBUSY;
363 362
364 goto err_free_irqs; 363 goto err_free_irqs;
364 } else {
365 out_be32(tbipa, tbiaddr);
366 }
365 } 367 }
366 368
367 out_be32(tbipa, tbiaddr);
368
369 err = of_mdiobus_register(new_bus, np); 369 err = of_mdiobus_register(new_bus, np);
370 if (err) { 370 if (err) {
371 printk (KERN_ERR "%s: Cannot register as MDIO bus\n", 371 printk (KERN_ERR "%s: Cannot register as MDIO bus\n",