diff options
author | Fabio Estevam <festevam@gmail.com> | 2012-03-19 13:41:25 +0000 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2012-03-27 09:41:17 +0200 |
commit | 19db9be4aa39e9112356c09c511f1c4726b64c74 (patch) | |
tree | 7dc85d5f11ecefd580c4bfdbb206757ef8919cd2 | |
parent | 67ee3dd35e20953e9e271d01a4ba4c4b417ec961 (diff) |
mx53ard: Initialize return code with error
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>
-rw-r--r-- | board/freescale/mx53ard/mx53ard.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/freescale/mx53ard/mx53ard.c b/board/freescale/mx53ard/mx53ard.c index e90e39ee0af..2d21584b337 100644 --- a/board/freescale/mx53ard/mx53ard.c +++ b/board/freescale/mx53ard/mx53ard.c @@ -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(); |