mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-31 06:14:39 +01:00
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 <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Reviewed-by: Florian Fainelli <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
1 parent
5a7f08c2ab
commit
ef87f7da6b
1 file changed
+1
-5
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user