9
0
Fork 0

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>
This commit is contained in:
Robert Schwebel 2010-11-01 09:26:16 +01:00 committed by Sascha Hauer
parent 6c7f466400
commit b44b778dbf
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}