[U-Boot] [PATCH 12/12] smc91111: Fix return value of smc91111_initialize()

Matthias Kaehlcke matthias at kaehlcke.net
Sun Jan 24 11:08:02 CET 2010


smc91111: Return 1 from smc91111_initialize() upon successful initialization

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

diff --git a/drivers/net/smc91111.c b/drivers/net/smc91111.c
index 54a1bfb..528efb1 100644
--- a/drivers/net/smc91111.c
+++ b/drivers/net/smc91111.c
@@ -1377,5 +1377,5 @@ int smc91111_initialize(u8 dev_num, int base_addr)
 	sprintf(dev->name, "%s-%hu", SMC_DEV_NAME, dev_num);
 
 	eth_register(dev);
-	return 0;
+	return 1;
 }
-- 
1.6.3.1



More information about the U-Boot mailing list