From: Christian Gmeiner Date: Tue, 6 Jun 2017 12:35:29 +0000 (+0200) Subject: drivers/net/phy/fixed: do not overwrite addr X-Git-Tag: v2017.09-rc2~95^2~18 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8f0b169382734d0f1f7bf89ec1e686e51a75cd67;p=u-boot drivers/net/phy/fixed: do not overwrite addr phy_device_create(..) sets the addr of phy_device with a sane value. There is no need overwrite it. Signed-off-by: Christian Gmeiner Reviewed-by: Hannes Schmelzer Tested-by: Hannes Schmelzer Acked-by: Joe Hershberger --- diff --git a/drivers/net/phy/fixed.c b/drivers/net/phy/fixed.c index df8235645e..e8e9099cb5 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");