[U-Boot] [PATCH 09/12] mcffec: Fix return value of mcffec_initialize()

Matthias Kaehlcke matthias at kaehlcke.net
Sun Jan 24 11:07:50 CET 2010


mcffec: Return the number of initialized devices from mcffec_initialize()

Signed-off-by: Matthias Kaehlcke <matthias at kaehlcke.net>
---
 drivers/net/mcffec.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/net/mcffec.c b/drivers/net/mcffec.c
index 64be5de..6043ca1 100644
--- a/drivers/net/mcffec.c
+++ b/drivers/net/mcffec.c
@@ -622,5 +622,5 @@ int mcffec_initialize(bd_t * bis)
 	/* default speed */
 	bis->bi_ethspeed = 10;
 
-	return 0;
+	return i;
 }
-- 
1.6.3.1



More information about the U-Boot mailing list