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 <siva.durga.paladugu@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
This commit is contained in:
committed by
Michal Simek
parent
e80b0044d6
commit
3aa57bd9e2
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user