summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/devices/docg3.c
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2012-10-16 17:25:37 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2012-10-17 20:16:58 +0200
commit006538e7c2c21eced61033813591e5cacf569108 (patch)
tree94cb4c75da67f87e05eb855c3fe60a7d57a6ca31 /drivers/mtd/devices/docg3.c
parent28d294de70f3884285efdde4f021c480744ce3f8 (diff)
downloadbarebox-006538e7c2c21eced61033813591e5cacf569108.tar.gz
barebox-006538e7c2c21eced61033813591e5cacf569108.tar.xz
mtd: add parent support
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/mtd/devices/docg3.c')
-rw-r--r--drivers/mtd/devices/docg3.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mtd/devices/docg3.c b/drivers/mtd/devices/docg3.c
index 0fe6799201..2f89900e43 100644
--- a/drivers/mtd/devices/docg3.c
+++ b/drivers/mtd/devices/docg3.c
@@ -1172,6 +1172,7 @@ static int __init docg3_probe(struct device_d *dev)
continue;
}
docg3_floors[floor] = mtd;
+ mtd->parent = dev;
ret = add_mtd_device(mtd, NULL);
if (ret)
goto err_probe;