From: Fabio Estevam Date: Fri, 20 Sep 2013 19:30:48 +0000 (-0300) Subject: mx28evk: Propagate the error if cpu_eth_init() fails X-Git-Tag: v2013.10-rc4~1^2^2~4 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=2cba60ac84deda66fc139e7db00b05cc26f309ea;p=karo-tx-uboot.git 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 --- diff --git a/board/freescale/mx28evk/mx28evk.c b/board/freescale/mx28evk/mx28evk.c index 3abf1fd85d..5005fe23dd 100644 --- a/board/freescale/mx28evk/mx28evk.c +++ b/board/freescale/mx28evk/mx28evk.c @@ -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,