[PATCH 5/7] initcalls: do not hang if an initcall fails

Sascha Hauer s.hauer at pengutronix.de
Thu Jan 26 08:26:51 EST 2012


Currently we just hang when an initcall fails. This resulted
in most initcalls just returning 0 unconditionally. Instead
of hanging which usually leaves the user without a clue what
happened just continue and hope for the best.

Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 common/startup.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/common/startup.c b/common/startup.c
index 180fdc3..d39748b 100644
--- a/common/startup.c
+++ b/common/startup.c
@@ -124,10 +124,7 @@ void start_barebox (void)
 		PUTS_LL("<<");
 		PUTHEX_LL(*initcall);
 		result = (*initcall)();
-		PUTC_LL('>');
-		if (result)
-			hang();
-		PUTS_LL(">\n");
+		PUTS_LL(">>\n");
 	}
 
 	PUTS_LL("initcalls done\n");
-- 
1.7.8.3




More information about the barebox mailing list