common: board_r: drop ifdefs around header includes
[platform/kernel/u-boot.git] / net / eth_common.c
index 58f899a..82d527a 100644 (file)
@@ -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)