Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -356,15 +356,15 @@ static int fsl_pq_mdio_probe(struct platform_device *ofdev)

		if (prop)
			tbiaddr = *prop;
	}

		if (tbiaddr == -1) {
			err = -EBUSY;

			goto err_free_irqs;
	}

		} else {
			out_be32(tbipa, tbiaddr);
		}
	}

	err = of_mdiobus_register(new_bus, np);
	if (err) {