]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
drivers/net/phy/fixed: do not overwrite addr
authorChristian Gmeiner <christian.gmeiner@gmail.com>
Tue, 6 Jun 2017 12:35:29 +0000 (14:35 +0200)
committerJoe Hershberger <joe.hershberger@ni.com>
Mon, 7 Aug 2017 20:18:28 +0000 (15:18 -0500)
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>
drivers/net/phy/fixed.c

index df8235645ef65526ea7e152098c123c384ed4048..e8e9099cb5fe04611c22fa1f86fe51523da84623 100644 (file)
@@ -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");