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

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Stefan Roese <sr@denx.de>
board/freescale/titanium/titanium.c

index 6025eb73155fbd603e4be9b43bdaba43ea28c262..9a317bc1378e680bdc314357f27a06750f09e66a 100644 (file)
@@ -272,7 +272,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)