Commit ef87f7da authored by Grygorii Strashko's avatar Grygorii Strashko Committed by David S. Miller

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: default avatarGrygorii Strashko <grygorii.strashko@ti.com>
Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
Reviewed-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5a7f08c2
...@@ -299,7 +299,7 @@ static int dp83867_probe(struct phy_device *phydev) ...@@ -299,7 +299,7 @@ static int dp83867_probe(struct phy_device *phydev)
phydev->priv = dp83867; phydev->priv = dp83867;
return 0; return dp83867_of_init(phydev);
} }
static int dp83867_config_init(struct phy_device *phydev) static int dp83867_config_init(struct phy_device *phydev)
...@@ -308,10 +308,6 @@ 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; int ret, val, bs;
u16 delay; u16 delay;
ret = dp83867_of_init(phydev);
if (ret)
return ret;
/* RX_DV/RX_CTRL strapped in mode 1 or mode 2 workaround */ /* RX_DV/RX_CTRL strapped in mode 1 or mode 2 workaround */
if (dp83867->rxctrl_strap_quirk) if (dp83867->rxctrl_strap_quirk)
phy_clear_bits_mmd(phydev, DP83867_DEVADDR, DP83867_CFG4, phy_clear_bits_mmd(phydev, DP83867_DEVADDR, DP83867_CFG4,
......
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