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:
parent
c265ed260d
commit
a92c5e01be
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue