summaryrefslogtreecommitdiffstats
path: root/arch/sandbox
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2011-04-25 11:18:49 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2011-04-25 11:18:49 +0200
commitfcad2ff58b617340230dae8cfc1e23ebc6baf108 (patch)
tree788293148f5f02a94fb6dcd179138f601c5db933 /arch/sandbox
parent6b082cfe9f9b5b2bea294918ad916c739490cea7 (diff)
downloadbarebox-fcad2ff58b617340230dae8cfc1e23ebc6baf108.tar.gz
barebox-fcad2ff58b617340230dae8cfc1e23ebc6baf108.tar.xz
sandbox: Fix another uninitialized dev->id case
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/sandbox')
-rw-r--r--arch/sandbox/board/hostfile.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/sandbox/board/hostfile.c b/arch/sandbox/board/hostfile.c
index 38a52a886c..e460d0a5f1 100644
--- a/arch/sandbox/board/hostfile.c
+++ b/arch/sandbox/board/hostfile.c
@@ -109,6 +109,7 @@ int barebox_register_filedev(struct hf_platform_data *hf)
strcpy(dev->name, "hostfile");
dev->size = hf->size;
+ dev->id = -1;
dev->map_base = hf->map_base;
return register_device(dev);