[PATCH 2/5] sandbox: use devfs functions only if defined

Robert Schwebel r.schwebel at pengutronix.de
Mon Nov 1 04:26:16 EDT 2010


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 at pengutronix.de>
---
 arch/sandbox/board/hostfile.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/arch/sandbox/board/hostfile.c b/arch/sandbox/board/hostfile.c
index ad625d7..38a52a8 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;
 }
-- 
1.7.2.3




More information about the barebox mailing list