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:
parent
6c7f466400
commit
b44b778dbf
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue