Signed-off-by: Renaud Barbier <renaud.barbier@xxxxxx> --- fs/fs.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/fs/fs.c b/fs/fs.c index dc3a6e3..3065440 100644 --- a/fs/fs.c +++ b/fs/fs.c @@ -1108,7 +1108,8 @@ static int fs_probe(struct device_d *dev) return ret; if (fsdev->cdev) { - dev_add_child(fsdev->cdev->dev, &fsdev->dev); + if (fsdev->cdev->dev) + dev_add_child(fsdev->cdev->dev, &fsdev->dev); fsdev->parent_device = fsdev->cdev->dev; } -- 1.7.1 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox