mirror of
https://xff.cz/git/u-boot/
synced 2025-09-04 18:22:02 +02:00
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>
This commit is contained in:
committed by
Stefano Babic
parent
67ee3dd35e
commit
19db9be4aa
@@ -287,7 +287,7 @@ int board_init(void)
|
|||||||
|
|
||||||
int board_eth_init(bd_t *bis)
|
int board_eth_init(bd_t *bis)
|
||||||
{
|
{
|
||||||
int rc = 0;
|
int rc = -ENODEV;
|
||||||
|
|
||||||
weim_smc911x_iomux();
|
weim_smc911x_iomux();
|
||||||
weim_cs1_settings();
|
weim_cs1_settings();
|
||||||
|
Reference in New Issue
Block a user