]> git.sur5r.net Git - u-boot/commitdiff
wandboard: Return the error when cpu_eth_init() fails
authorFabio Estevam <fabio.estevam@freescale.com>
Mon, 4 Nov 2013 00:03:04 +0000 (22:03 -0200)
committerStefano Babic <sbabic@denx.de>
Wed, 13 Nov 2013 09:09:09 +0000 (10:09 +0100)
When cpu_eth_init() fails we should not return success.

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

index 99150f9b895e99331df91b0ddc9f193c00e0896c..bf9898c3fe07d312204e46413315d30bcf07dc64 100644 (file)
@@ -265,7 +265,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)