[PATCH] net: fec_imx: default phy address to -1 for dt probe

Sascha Hauer s.hauer at pengutronix.de
Thu May 23 09:58:20 EDT 2013


To enable automatic probing of the phy.

Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 drivers/net/fec_imx.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/fec_imx.c b/drivers/net/fec_imx.c
index 1a85d15..25d8d8e 100644
--- a/drivers/net/fec_imx.c
+++ b/drivers/net/fec_imx.c
@@ -707,6 +707,7 @@ static int fec_probe(struct device_d *dev)
 
 	if (dev->device_node) {
 		ret = fec_probe_dt(dev, fec);
+		fec->phy_addr = -1;
 	} else if (pdata) {
 		fec->interface = pdata->xcv_type;
 		fec->phy_init = pdata->phy_init;
-- 
1.8.2.rc2




More information about the barebox mailing list