]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
net: phy: ti: Use ofnode api to read phy property
authorSiva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Wed, 20 Mar 2019 11:19:47 +0000 (16:49 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Fri, 22 Mar 2019 10:24:07 +0000 (11:24 +0100)
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>
drivers/net/phy/ti.c

index 97b729e11cdc7113c92706ac310918195cbf68ec..f3fe21452c7d82f3d105f958560bb6ce026a67fe 100644 (file)
@@ -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 */