]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
net: keystone_net: Remove non-DM_ETH code
authorTom Rini <trini@konsulko.com>
Sun, 27 Nov 2022 15:25:27 +0000 (10:25 -0500)
committerTom Rini <trini@konsulko.com>
Wed, 7 Dec 2022 21:04:17 +0000 (16:04 -0500)
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>
drivers/net/ti/keystone_net.c

index 1bdbd599d7b416a6f5ae831ee299ef5b25607678..679a0450f1d5ea25531430cb801a5b375ebfe98e 100644 (file)
@@ -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);
        }