mirror of
https://xff.cz/git/u-boot/
synced 2025-10-21 01:51:11 +02:00
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>
This commit is contained in:
committed by
Joe Hershberger
parent
eaa90e5df2
commit
8f0b169382
@@ -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");
|
||||
|
Reference in New Issue
Block a user