diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2012-09-20 07:36:42 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-09-20 08:50:59 +0200 |
commit | fc5caa43a8c2f0166bee57bda7de127fe37b31f8 (patch) | |
tree | 37b87d976660aa8acb7cc1c3b01a065c32064699 /arch/sandbox/board/console.c | |
parent | 48842b9b2510baa744561c36d3fcb0034a9f389e (diff) | |
download | barebox-fc5caa43a8c2f0166bee57bda7de127fe37b31f8.tar.gz barebox-fc5caa43a8c2f0166bee57bda7de127fe37b31f8.tar.xz |
sandbox: do not register device before barebox is started
This will crash when use registered bus with device registered to it.
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/sandbox/board/console.c')
-rw-r--r-- | arch/sandbox/board/console.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sandbox/board/console.c b/arch/sandbox/board/console.c index 2959e85c7a..e762521b7a 100644 --- a/arch/sandbox/board/console.c +++ b/arch/sandbox/board/console.c @@ -47,6 +47,6 @@ int barebox_register_console(char *name, int stdinfd, int stdoutfd) data->stdoutfd = stdoutfd; data->stdinfd = stdinfd; - return register_device(dev); + return sandbox_add_device(dev); } |