diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2013-09-20 16:30:48 -0300 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2013-09-27 13:53:35 +0200 |
commit | 2cba60ac84deda66fc139e7db00b05cc26f309ea (patch) | |
tree | 0aba01aa95647dea36133568a5e7b526478b66b6 /board/freescale/mx28evk | |
parent | 72048bc3f169a66384548463f3128453970207c2 (diff) | |
download | u-boot-imx-2cba60ac84deda66fc139e7db00b05cc26f309ea.zip u-boot-imx-2cba60ac84deda66fc139e7db00b05cc26f309ea.tar.gz u-boot-imx-2cba60ac84deda66fc139e7db00b05cc26f309ea.tar.bz2 |
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>
Diffstat (limited to 'board/freescale/mx28evk')
-rw-r--r-- | board/freescale/mx28evk/mx28evk.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/board/freescale/mx28evk/mx28evk.c b/board/freescale/mx28evk/mx28evk.c index 3abf1fd..5005fe2 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, |