[U-Boot] [PATCH] drivers/net/phy/fixed: do not overwrite addr
Christian Gmeiner
christian.gmeiner at gmail.com
Tue Jun 6 12:35:29 UTC 2017
phy_device_create(..) sets the addr of phy_device with a sane value.
There is no need overwrite it.
Signed-off-by: Christian Gmeiner <christian.gmeiner at gmail.com>
---
drivers/net/phy/fixed.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/net/phy/fixed.c b/drivers/net/phy/fixed.c
index df82356..e8e9099 100644
--- a/drivers/net/phy/fixed.c
+++ b/drivers/net/phy/fixed.c
@@ -34,7 +34,6 @@ int fixedphy_probe(struct phy_device *phydev)
memset(priv, 0, sizeof(*priv));
phydev->priv = priv;
- phydev->addr = 0;
priv->link_speed = val;
priv->duplex = fdtdec_get_bool(gd->fdt_blob, ofnode, "full-duplex");
--
2.9.4
More information about the U-Boot
mailing list