[U-Boot] [PATCH 07/12] lan91c96: Fix return value of lan91c96_initialize()

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


lan91c96: Return 1 from lan91c96_initialize() upon successful initialization

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

diff --git a/drivers/net/lan91c96.c b/drivers/net/lan91c96.c
index 90e4002..d255179 100644
--- a/drivers/net/lan91c96.c
+++ b/drivers/net/lan91c96.c
@@ -817,5 +817,5 @@ int lan91c96_initialize(u8 dev_num, int base_addr)
 	sprintf(dev->name, "%s-%hu", supported_chips[r].name, dev_num);
 
 	eth_register(dev);
-	return 0;
+	return 1;
 }
-- 
1.6.3.1



More information about the U-Boot mailing list