summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Gmeiner <christian.gmeiner@gmail.com>2017-06-06 12:35:29 (GMT)
committerJoe Hershberger <joe.hershberger@ni.com>2017-08-07 20:18:28 (GMT)
commit8f0b169382734d0f1f7bf89ec1e686e51a75cd67 (patch)
tree4412b12ec19c0a2c6eb93b6337047f7b537ebb0d
parenteaa90e5df2a4a1cb12fb73571978a9379242d0b5 (diff)
downloadu-boot-fsl-qoriq-8f0b169382734d0f1f7bf89ec1e686e51a75cd67.tar.xz
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 <christian.gmeiner@gmail.com> Reviewed-by: Hannes Schmelzer <oe5hpm@oevsv.at> Tested-by: Hannes Schmelzer <oe5hpm@oevsv.at> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
-rw-r--r--drivers/net/phy/fixed.c1
1 files changed, 0 insertions, 1 deletions
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");