summaryrefslogtreecommitdiffstats
path: root/arch/sandbox/mach-sandbox
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2012-09-20 07:36:42 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2012-09-20 08:50:59 +0200
commitfc5caa43a8c2f0166bee57bda7de127fe37b31f8 (patch)
tree37b87d976660aa8acb7cc1c3b01a065c32064699 /arch/sandbox/mach-sandbox
parent48842b9b2510baa744561c36d3fcb0034a9f389e (diff)
downloadbarebox-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/mach-sandbox')
-rw-r--r--arch/sandbox/mach-sandbox/include/mach/linux.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/sandbox/mach-sandbox/include/mach/linux.h b/arch/sandbox/mach-sandbox/include/mach/linux.h
index 5917fe93de..259f2d8ee3 100644
--- a/arch/sandbox/mach-sandbox/include/mach/linux.h
+++ b/arch/sandbox/mach-sandbox/include/mach/linux.h
@@ -1,6 +1,9 @@
#ifndef __ASM_ARCH_LINUX_H
#define __ASM_ARCH_LINUX_H
+struct device_d;
+
+int sandbox_add_device(struct device_d *dev);
int linux_register_device(const char *name, void *start, void *end);
int tap_alloc(char *dev);
uint64_t linux_get_time(void);