Skip to content
Snippets Groups Projects
Commit b8d7ec78 authored by Grygorii Strashko's avatar Grygorii Strashko Committed by Joe Hershberger
Browse files

net: phy: dp83867: switch to use phy_get_ofnode()


Use PHY API phy_get_ofnode() helper to get PHY DT node.

Signed-off-by: default avatarGrygorii Strashko <grygorii.strashko@ti.com>
Acked-by: default avatarJoe Hershberger <joe.hershberger@ni.com>
Tested-by: default avatarSiva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
parent eef0b8a9
No related branches found
No related tags found
No related merge requests found
...@@ -172,8 +172,11 @@ void phy_write_mmd_indirect(struct phy_device *phydev, int prtad, ...@@ -172,8 +172,11 @@ void phy_write_mmd_indirect(struct phy_device *phydev, int prtad,
static int dp83867_of_init(struct phy_device *phydev) static int dp83867_of_init(struct phy_device *phydev)
{ {
struct dp83867_private *dp83867 = phydev->priv; struct dp83867_private *dp83867 = phydev->priv;
struct udevice *dev = phydev->dev; ofnode node;
ofnode node = dev_ofnode(dev);
node = phy_get_ofnode(phydev);
if (!ofnode_valid(node))
return -EINVAL;
if (ofnode_read_bool(node, "ti,max-output-impedance")) if (ofnode_read_bool(node, "ti,max-output-impedance"))
dp83867->io_impedance = DP83867_IO_MUX_CFG_IO_IMPEDANCE_MAX; dp83867->io_impedance = DP83867_IO_MUX_CFG_IO_IMPEDANCE_MAX;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment