wandboard: Return the error when cpu_eth_init() fails

When cpu_eth_init() fails we should not return success.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
This commit is contained in:
Fabio Estevam 2013-11-03 22:03:04 -02:00 committed by Stefano Babic
parent cffe815a76
commit c243a832c8

View File

@ -265,7 +265,7 @@ int board_eth_init(bd_t *bis)
if (ret) if (ret)
printf("FEC MXC: %s:failed\n", __func__); printf("FEC MXC: %s:failed\n", __func__);
return 0; return ret;
} }
int board_early_init_f(void) int board_early_init_f(void)