diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2012-10-16 17:25:37 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-10-17 20:16:58 +0200 |
commit | 006538e7c2c21eced61033813591e5cacf569108 (patch) | |
tree | 94cb4c75da67f87e05eb855c3fe60a7d57a6ca31 /drivers/mtd/devices/docg3.c | |
parent | 28d294de70f3884285efdde4f021c480744ce3f8 (diff) | |
download | barebox-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.c | 1 |
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; |