diff options
author | Grygorii Strashko <grygorii.strashko@ti.com> | 2019-10-23 17:48:46 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-10-25 19:24:47 -0700 |
commit | ef87f7da6b28dfaf7aac435350fe287cc667124a (patch) | |
tree | a6320d0cdc69d6ab84d3ae81607ffece65343443 /drivers/net/phy/dp83867.c | |
parent | 5a7f08c2abb0efc9d17aff2fc75d6d3b85e622e4 (diff) | |
download | linux-stable-ef87f7da6b28dfaf7aac435350fe287cc667124a.tar.gz linux-stable-ef87f7da6b28dfaf7aac435350fe287cc667124a.tar.bz2 linux-stable-ef87f7da6b28dfaf7aac435350fe287cc667124a.zip |
net: phy: dp83867: move dt parsing to probe
Move DT parsing code to probe dp83867_probe() as it's one time operation.
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/phy/dp83867.c')
-rw-r--r-- | drivers/net/phy/dp83867.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/net/phy/dp83867.c b/drivers/net/phy/dp83867.c index cf4455bbf888..5816a06a9439 100644 --- a/drivers/net/phy/dp83867.c +++ b/drivers/net/phy/dp83867.c @@ -299,7 +299,7 @@ static int dp83867_probe(struct phy_device *phydev) phydev->priv = dp83867; - return 0; + return dp83867_of_init(phydev); } static int dp83867_config_init(struct phy_device *phydev) @@ -308,10 +308,6 @@ static int dp83867_config_init(struct phy_device *phydev) int ret, val, bs; u16 delay; - ret = dp83867_of_init(phydev); - if (ret) - return ret; - /* RX_DV/RX_CTRL strapped in mode 1 or mode 2 workaround */ if (dp83867->rxctrl_strap_quirk) phy_clear_bits_mmd(phydev, DP83867_DEVADDR, DP83867_CFG4, |