From 3aa57bd9e22538c7897538a2d9e275fd0687318e Mon Sep 17 00:00:00 2001 From: Siva Durga Prasad Paladugu Date: Wed, 20 Mar 2019 16:49:47 +0530 Subject: [PATCH] net: phy: ti: Use ofnode api to read phy property Fix incorrect read of phy property "ti,6-wire-mode" by using ofnode api instead of dev read. All other phy properties in of_init() routine were also read using ofnode APIs. Signed-off-by: Siva Durga Prasad Paladugu Signed-off-by: Michal Simek --- drivers/net/phy/ti.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/phy/ti.c b/drivers/net/phy/ti.c index 97b729e11c..f3fe21452c 100644 --- a/drivers/net/phy/ti.c +++ b/drivers/net/phy/ti.c @@ -261,7 +261,7 @@ static int dp83867_of_init(struct phy_device *phydev) /* * 6-wire mode enables differential SGMII clock to MAC */ - if (dev_read_bool(phydev->dev, "ti,6-wire-mode")) + if (ofnode_read_bool(node, "ti,6-wire-mode")) dp83867->wiremode_6 = true; /* Clock output selection if muxing property is set */