]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mx6sabresd: Return error if cpu_eth_init() fails
authorFabio Estevam <fabio.estevam@freescale.com>
Fri, 13 Sep 2013 01:03:22 +0000 (22:03 -0300)
committerStefano Babic <sbabic@denx.de>
Fri, 20 Sep 2013 15:55:36 +0000 (17:55 +0200)
Currently board_eth_init() always return 0, but we should propagate the error
when cpu_eth_init() fails.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
board/freescale/mx6sabresd/mx6sabresd.c

index 61fe67c71cd9391279599d169e1c4fabafeea8d1..9dbe605cf4a5a8ba16c674f14b894ccb59bece9f 100644 (file)
@@ -422,7 +422,7 @@ int board_eth_init(bd_t *bis)
        if (ret)
                printf("FEC MXC: %s:failed\n", __func__);
 
-       return 0;
+       return ret;
 }
 
 int board_early_init_f(void)