Fix U-Boot compilation for MIPS boards using ELDK 4.0
[oweals/u-boot.git] / net / eth.c
index 1646111d1347be9b9af4c6f40dabcd0f4458787c..9341e20e95c5ff5c36a8f9506b4039bbc6aefd43 100644 (file)
--- a/net/eth.c
+++ b/net/eth.c
@@ -162,9 +162,6 @@ int eth_initialize(bd_t *bis)
 #ifdef SCC_ENET
        scc_initialize(bis);
 #endif
-#if defined(FEC_ENET) || defined(CONFIG_ETHER_ON_FCC)
-       fec_initialize(bis);
-#endif
 #if defined(CONFIG_MPC5xxx_FEC)
        mpc5xxx_fec_initialize(bis);
 #endif
@@ -198,6 +195,9 @@ int eth_initialize(bd_t *bis)
        tsec_initialize(bis, 3, CONFIG_MPC83XX_TSEC4_NAME);
 #    endif
 #endif
+#if defined(FEC_ENET) || defined(CONFIG_ETHER_ON_FCC)
+       fec_initialize(bis);
+#endif
 #if defined(CONFIG_AU1X00)
        au1x00_enet_initialize(bis);
 #endif