aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/phy/atheros.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2022-11-27 10:25:20 -0500
committerTom Rini <trini@konsulko.com>2022-12-07 16:04:17 -0500
commit36af92ba85ad45dfb07f1d17e8b7d6945c1ac0b4 (patch)
tree05f0600944247694f49027a446c50ae45e283d99 /drivers/net/phy/atheros.c
parent32dc6772762dc7bb3f112822729d2369b98aa842 (diff)
downloadu-boot-36af92ba85ad45dfb07f1d17e8b7d6945c1ac0b4.zip
u-boot-36af92ba85ad45dfb07f1d17e8b7d6945c1ac0b4.tar.gz
u-boot-36af92ba85ad45dfb07f1d17e8b7d6945c1ac0b4.tar.bz2
net: phy: 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/phy/atheros.c')
-rw-r--r--drivers/net/phy/atheros.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/phy/atheros.c b/drivers/net/phy/atheros.c
index fa1fe08..c6f9f91 100644
--- a/drivers/net/phy/atheros.c
+++ b/drivers/net/phy/atheros.c
@@ -191,7 +191,6 @@ static int ar803x_regs_config(struct phy_device *phydev)
static int ar803x_of_init(struct phy_device *phydev)
{
-#if defined(CONFIG_DM_ETH)
struct ar803x_priv *priv;
ofnode node, vddio_reg_node;
u32 strength, freq, min_uV, max_uV;
@@ -306,7 +305,6 @@ static int ar803x_of_init(struct phy_device *phydev)
debug("%s: flags=%x clk_25m_reg=%04x clk_25m_mask=%04x\n", __func__,
priv->flags, priv->clk_25m_reg, priv->clk_25m_mask);
-#endif
return 0;
}