Skip to content
Snippets Groups Projects
Commit 2cba60ac authored by Fabio Estevam's avatar Fabio Estevam Committed by Stefano Babic
Browse files

mx28evk: Propagate the error if cpu_eth_init() fails


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

Signed-off-by: default avatarFabio Estevam <fabio.estevam@freescale.com>
parent 72048bc3
No related branches found
No related tags found
No related merge requests found
...@@ -103,6 +103,8 @@ int board_eth_init(bd_t *bis) ...@@ -103,6 +103,8 @@ int board_eth_init(bd_t *bis)
int ret; int ret;
ret = cpu_eth_init(bis); ret = cpu_eth_init(bis);
if (ret)
return ret;
/* MX28EVK uses ENET_CLK PAD to drive FEC clock */ /* MX28EVK uses ENET_CLK PAD to drive FEC clock */
writel(CLKCTRL_ENET_TIME_SEL_RMII_CLK | CLKCTRL_ENET_CLK_OUT_EN, writel(CLKCTRL_ENET_TIME_SEL_RMII_CLK | CLKCTRL_ENET_CLK_OUT_EN,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment