PHY: DP83867: Remove looking in parent device for OF properties
authorAndrew Lunn <andrew@lunn.ch>
Mon, 7 Dec 2015 03:38:58 +0000 (04:38 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Dec 2015 04:05:56 +0000 (23:05 -0500)
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>
drivers/net/phy/dp83867.c

index 32f10662f4ac7c189e3fa666f0891f515d2a4ca1..4ebf601073d97dae09aa5541f4877e0d1aa19017 100644 (file)
@@ -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",
This page took 0.026663 seconds and 5 git commands to generate.