summaryrefslogtreecommitdiffstats
path: root/arch/sandbox
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2015-03-03 13:14:51 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2015-03-06 07:42:21 +0100
commita92c5e01be6724dfe2acb45b632e0f2ee2551559 (patch)
treeb1066cc5d733224b4bfcb161c103f782544a087d /arch/sandbox
parentc265ed260d0a85c03046fa450c6a2246e0d6eb88 (diff)
downloadbarebox-a92c5e01be6724dfe2acb45b632e0f2ee2551559.tar.gz
barebox-a92c5e01be6724dfe2acb45b632e0f2ee2551559.tar.xz
sandbox: hostfile: probe(): add missing pointer from cdev.dev to dev
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@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/sandbox')
-rw-r--r--arch/sandbox/board/hostfile.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/sandbox/board/hostfile.c b/arch/sandbox/board/hostfile.c
index 5324da6f48..6ec3b87efa 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;