Commit 7bf9ae01 authored by Andrew Lunn's avatar Andrew Lunn Committed by David S. Miller

PHY: DP83867: Remove looking in parent device for OF properties

Device tree properties for a phy device are expected to be in the phy
node. The current code for the DP83867 also tries to look in the
parent node. The devices binding documentation does not mention this,
no current device tree file makes use of this, and it is not behaviour
we want. So remove looking in the parent device.
Signed-off-by: default avatarAndrew Lunn <andrew@lunn.ch>
Acked-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 404814af
...@@ -107,10 +107,7 @@ static int dp83867_of_init(struct phy_device *phydev) ...@@ -107,10 +107,7 @@ static int dp83867_of_init(struct phy_device *phydev)
struct device_node *of_node = dev->of_node; struct device_node *of_node = dev->of_node;
int ret; int ret;
if (!of_node && dev->parent->of_node) if (!of_node)
of_node = dev->parent->of_node;
if (!phydev->dev.of_node)
return -ENODEV; return -ENODEV;
ret = of_property_read_u32(of_node, "ti,rx-internal-delay", ret = of_property_read_u32(of_node, "ti,rx-internal-delay",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment