]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
mx53ard: Initialize return code with error
authorFabio Estevam <festevam@gmail.com>
Mon, 19 Mar 2012 13:41:25 +0000 (13:41 +0000)
committerStefano Babic <sbabic@denx.de>
Tue, 27 Mar 2012 07:41:17 +0000 (09:41 +0200)
The variable "rc" is the return of board_eth_init() function. Initialize
it with an error code, so that this function can return an error when
CONFIG_SMC911X is not set.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Stefano Babic <sbabic@denx.de>
board/freescale/mx53ard/mx53ard.c

index e90e39ee0af1ce9eb60f6fac21f4bb111b03c7b7..2d21584b3376a528d8ae2b323a3f724bb43ed3fb 100644 (file)
@@ -287,7 +287,7 @@ int board_init(void)
 
 int board_eth_init(bd_t *bis)
 {
-       int rc = 0;
+       int rc = -ENODEV;
 
        weim_smc911x_iomux();
        weim_cs1_settings();