From: Grygorii Strashko Date: Thu, 5 Jul 2018 17:02:52 +0000 (-0500) Subject: drivers: net: zynq_gem: fix phy dt node setting X-Git-Tag: v2018.09-rc1~26^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=41080e180c2249a0da586b3e79f15ae7515b8a18;p=platform%2Fkernel%2Fu-boot.git drivers: net: zynq_gem: fix phy dt node setting Now zynq_gem driver will overwrite UCLASS_ETH node when PHY is connected and configured which is not correct. Use struct phydev->node instead. Signed-off-by: Grygorii Strashko Acked-by: Joe Hershberger Tested-by: Siva Durga Prasad Paladugu --- diff --git a/drivers/net/zynq_gem.c b/drivers/net/zynq_gem.c index d1138fe..0f56cda 100644 --- a/drivers/net/zynq_gem.c +++ b/drivers/net/zynq_gem.c @@ -350,7 +350,7 @@ static int zynq_phy_init(struct udevice *dev) priv->phydev->advertising = priv->phydev->supported; if (priv->phy_of_handle > 0) - dev_set_of_offset(priv->phydev->dev, priv->phy_of_handle); + priv->phydev->node = offset_to_ofnode(priv->phy_of_handle); return phy_config(priv->phydev); }