Skip to content

Commit

Permalink
PHY: DP83867: Remove looking in parent device for OF properties
Browse files Browse the repository at this point in the history
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: Andrew Lunn <andrew@lunn.ch>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Andrew Lunn authored and David S. Miller committed Dec 7, 2015
1 parent 404814a commit 7bf9ae0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions drivers/net/phy/dp83867.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,7 @@ static int dp83867_of_init(struct phy_device *phydev)
struct device_node *of_node = dev->of_node;
int ret;

if (!of_node && dev->parent->of_node)
of_node = dev->parent->of_node;

if (!phydev->dev.of_node)
if (!of_node)
return -ENODEV;

ret = of_property_read_u32(of_node, "ti,rx-internal-delay",
Expand Down

0 comments on commit 7bf9ae0

Please sign in to comment.