diff options
author | Robert Schwebel <r.schwebel@pengutronix.de> | 2010-11-01 09:26:16 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2010-11-01 11:44:48 +0100 |
commit | b44b778dbf9ec7a5a778341c8b1c5fb61f3d88b3 (patch) | |
tree | 60b56d1956723e7df1a29eac4ce9beebb4af8d20 | |
parent | 6c7f4664009ddf70e21b1b07353cf14c7330ca8d (diff) | |
download | barebox-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>
-rw-r--r-- | 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 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; } |