mx28evk: Propagate the error if cpu_eth_init() fails

If cpu_eth_init() fails we should return the error immediately.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
This commit is contained in:
Fabio Estevam 2013-09-20 16:30:48 -03:00 committed by Stefano Babic
parent 72048bc3f1
commit 2cba60ac84
1 changed files with 2 additions and 0 deletions

View 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,