]> git.sur5r.net Git - u-boot/commitdiff
mx6qsabreauto: Return error if cpu_eth_init() fails
authorFabio Estevam <fabio.estevam@freescale.com>
Fri, 13 Sep 2013 01:03:23 +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/mx6qsabreauto/mx6qsabreauto.c

index 1cdf2cb097ba795eb67306b9d79edec79a4ff324..c55ee8783d5ff2d495c669bf2401622cd625640c 100644 (file)
@@ -200,7 +200,7 @@ int board_eth_init(bd_t *bis)
        if (ret)
                printf("FEC MXC: %s:failed\n", __func__);
 
-       return 0;
+       return ret;
 }
 
 #define BOARD_REV_B  0x200