[PATCH v3 05/13] sandbox: hostfile: probe(): add missing pointer from cdev.dev to dev
Marc Kleine-Budde
mkl at pengutronix.de
Tue Mar 3 04:14:51 PST 2015
Without this pointer the cdev will not be associated with the dev,
of_find_path() relies on this.
Signed-off-by: Marc Kleine-Budde <mkl at pengutronix.de>
---
arch/sandbox/board/hostfile.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/sandbox/board/hostfile.c b/arch/sandbox/board/hostfile.c
index 5324da6f4802..6ec3b87efa86 100644
--- a/arch/sandbox/board/hostfile.c
+++ b/arch/sandbox/board/hostfile.c
@@ -75,6 +75,7 @@ static int hf_probe(struct device_d *dev)
priv->cdev.name = hf->devname;
priv->cdev.size = hf->size;
+ priv->cdev.dev = dev;
priv->cdev.ops = &hf_fops;
priv->cdev.priv = hf;
--
2.1.4
More information about the barebox
mailing list