From 8f0b169382734d0f1f7bf89ec1e686e51a75cd67 Mon Sep 17 00:00:00 2001 From: Christian Gmeiner Date: Tue, 6 Jun 2017 14:35:29 +0200 Subject: [PATCH] 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 --- 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 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"); -- 2.39.5