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@xxxxxxxxxxxxxx> --- 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 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox