diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2012-01-26 14:05:25 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-01-26 14:05:28 +0100 |
commit | 6d2ac13be0d79dd8a331388917ae7b54201af68c (patch) | |
tree | fa336dc42e6639ca3c009a24775e6eb1d7917376 /common | |
parent | be3aaa27b9b184086ca3a83d7f132cd0a9521c2a (diff) | |
download | barebox-6d2ac13be0d79dd8a331388917ae7b54201af68c.tar.gz barebox-6d2ac13be0d79dd8a331388917ae7b54201af68c.tar.xz |
initcalls: do not hang if an initcall fails
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@pengutronix.de>
Diffstat (limited to 'common')
-rw-r--r-- | common/startup.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/common/startup.c b/common/startup.c index 180fdc3599..d39748bec0 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"); |