aboutsummaryrefslogtreecommitdiff
path: root/net/eth_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/eth_common.c')
-rw-r--r--net/eth_common.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/eth_common.c b/net/eth_common.c
index 58f899a0240..82d527abba6 100644
--- a/net/eth_common.c
+++ b/net/eth_common.c
@@ -32,6 +32,7 @@ int eth_env_set_enetaddr_by_index(const char *base_name, int index,
void eth_common_init(void)
{
bootstage_mark(BOOTSTAGE_ID_NET_ETH_START);
+#if CONFIG_IS_ENABLED(ETH)
#if defined(CONFIG_MII) || defined(CONFIG_CMD_MII) || defined(CONFIG_PHYLIB)
miiphy_init();
#endif
@@ -39,6 +40,7 @@ void eth_common_init(void)
#ifdef CONFIG_PHYLIB
phy_init();
#endif
+#endif
}
int eth_mac_skip(int index)