summaryrefslogtreecommitdiffstats
path: root/board/denx
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2013-09-20 16:30:49 -0300
committerStefano Babic <sbabic@denx.de>2013-09-27 13:53:35 +0200
commit17cc2362afe504eda574948d3d653a19a29ceb76 (patch)
treeee8de93a4b18c163485d9ecc2e5d5b233bcd94e4 /board/denx
parent2cba60ac84deda66fc139e7db00b05cc26f309ea (diff)
downloadtalos-obmc-uboot-17cc2362afe504eda574948d3d653a19a29ceb76.tar.gz
talos-obmc-uboot-17cc2362afe504eda574948d3d653a19a29ceb76.zip
mx28evk: Propagate the error if cpu_eth_init() fails
If cpu_eth_init() fails we should return the error immediately. Cc: Marek Vasut <marex@denx.de> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> Acked-by: Marek Vasut <marex@denx.de>
Diffstat (limited to 'board/denx')
-rw-r--r--board/denx/m28evk/m28evk.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/board/denx/m28evk/m28evk.c b/board/denx/m28evk/m28evk.c
index f4453d64ab..33d38cfc54 100644
--- a/board/denx/m28evk/m28evk.c
+++ b/board/denx/m28evk/m28evk.c
@@ -116,6 +116,8 @@ int board_eth_init(bd_t *bis)
int ret;
ret = cpu_eth_init(bis);
+ if (ret)
+ return ret;
clrsetbits_le32(&clkctrl_regs->hw_clkctrl_enet,
CLKCTRL_ENET_TIME_SEL_MASK | CLKCTRL_ENET_CLK_OUT_EN,
OpenPOWER on IntegriCloud