summaryrefslogtreecommitdiffstats
path: root/arch/sandbox/board/hostfile.c
diff options
context:
space:
mode:
authorRobert Schwebel <r.schwebel@pengutronix.de>2010-11-01 09:26:16 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2010-11-01 11:44:48 +0100
commitb44b778dbf9ec7a5a778341c8b1c5fb61f3d88b3 (patch)
tree60b56d1956723e7df1a29eac4ce9beebb4af8d20 /arch/sandbox/board/hostfile.c
parent6c7f4664009ddf70e21b1b07353cf14c7330ca8d (diff)
downloadbarebox-b44b778dbf9ec7a5a778341c8b1c5fb61f3d88b3.tar.gz
barebox-b44b778dbf9ec7a5a778341c8b1c5fb61f3d88b3.tar.xz
sandbox: use devfs functions only if defined
arch/sandbox/board/built-in.o: In function `hf_probe': hostfile.c:(.text+0xac): undefined reference to `devfs_create' Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/sandbox/board/hostfile.c')
-rw-r--r--arch/sandbox/board/hostfile.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/sandbox/board/hostfile.c b/arch/sandbox/board/hostfile.c
index ad625d7a6e..38a52a886c 100644
--- a/arch/sandbox/board/hostfile.c
+++ b/arch/sandbox/board/hostfile.c
@@ -79,7 +79,9 @@ static int hf_probe(struct device_d *dev)
priv->cdev.size = hf->size;
priv->cdev.ops = &hf_fops;
priv->cdev.priv = hf;
+#ifdef CONFIG_FS_DEVFS
devfs_create(&priv->cdev);
+#endif
return 0;
}