9
0
Fork 0

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>
This commit is contained in:
Marc Kleine-Budde 2015-03-03 13:14:51 +01:00 committed by Sascha Hauer
parent c265ed260d
commit a92c5e01be
1 changed files with 1 additions and 0 deletions

View File

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