diff options
author | Tom Rini <trini@konsulko.com> | 2022-11-27 10:25:27 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-12-07 16:04:17 -0500 |
commit | 8a9e3464e487a6837dba381b28f6532fd106ce6c (patch) | |
tree | c44a76251054195f3669dfde27a96d206579105e /drivers/net | |
parent | f8dc288c7f22a0b1d4e2b20ae163b956a9c89a00 (diff) | |
download | u-boot-8a9e3464e487a6837dba381b28f6532fd106ce6c.tar.gz u-boot-8a9e3464e487a6837dba381b28f6532fd106ce6c.tar.bz2 u-boot-8a9e3464e487a6837dba381b28f6532fd106ce6c.zip |
net: keystone_net: Remove non-DM_ETH code
As DM_ETH is required for all network drivers, it's now safe to
remove the non-DM_ETH support code.
Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ti/keystone_net.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/ti/keystone_net.c b/drivers/net/ti/keystone_net.c index 1bdbd599d7..679a0450f1 100644 --- a/drivers/net/ti/keystone_net.c +++ b/drivers/net/ti/keystone_net.c @@ -592,10 +592,8 @@ static int ks2_eth_probe(struct udevice *dev) if (priv->has_mdio) { priv->phydev = phy_connect(priv->mdio_bus, priv->phy_addr, dev, priv->phy_if); -#ifdef CONFIG_DM_ETH - if (ofnode_valid(priv->phy_ofnode)) - priv->phydev->node = priv->phy_ofnode; -#endif + if (ofnode_valid(priv->phy_ofnode)) + priv->phydev->node = priv->phy_ofnode; phy_config(priv->phydev); } |