]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - board/freescale/mx28evk/mx28evk.c
mx28evk: Propagate the error if cpu_eth_init() fails
[karo-tx-uboot.git] / board / freescale / mx28evk / mx28evk.c
index 3abf1fd85d3a6f3de3314f98c51e6af17cbd6376..5005fe23dda310632e9ee2003db371b98723508b 100644 (file)
@@ -103,6 +103,8 @@ int board_eth_init(bd_t *bis)
        int ret;
 
        ret = cpu_eth_init(bis);
+       if (ret)
+               return ret;
 
        /* MX28EVK uses ENET_CLK PAD to drive FEC clock */
        writel(CLKCTRL_ENET_TIME_SEL_RMII_CLK | CLKCTRL_ENET_CLK_OUT_EN,