[PATCH 32/41] net: keystone_net: Remove non-DM_ETH code
Tom Rini
trini at konsulko.com
Sun Nov 27 16:25:27 CET 2022
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 at konsulko.com>
---
drivers/net/ti/keystone_net.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/drivers/net/ti/keystone_net.c b/drivers/net/ti/keystone_net.c
index 1bdbd599d7b4..679a0450f1d5 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);
}
--
2.25.1
More information about the U-Boot
mailing list