summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/core.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2015-05-06 21:36:13 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2015-05-06 21:36:13 +0200
commit3975737a7d48b3c767f60be994d55884321d45f9 (patch)
tree8be2f56c4978420e6e4c4b3292e18c61b07a926e /drivers/mtd/core.c
parent10fb7853084356ef3c6b40ddf21dfb05dbd15691 (diff)
parent6d4afd96fc94a3f2d256ef4e8d7c9687a145a701 (diff)
downloadbarebox-3975737a7d48b3c767f60be994d55884321d45f9.tar.gz
barebox-3975737a7d48b3c767f60be994d55884321d45f9.tar.xz
Merge branch 'for-next/misc'
Diffstat (limited to 'drivers/mtd/core.c')
-rw-r--r--drivers/mtd/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/core.c b/drivers/mtd/core.c
index 431114bab8..1755e7680f 100644
--- a/drivers/mtd/core.c
+++ b/drivers/mtd/core.c
@@ -488,7 +488,7 @@ static int of_mtd_fixup(struct device_node *root, void *ctx)
struct device_node *np, *part, *tmp;
int ret, i = 0;
- np = of_find_node_by_path(mtd->of_path);
+ np = of_find_node_by_path_from(root, mtd->of_path);
if (!np) {
dev_err(&mtd->class_dev, "Cannot find nodepath %s, cannot fixup\n",
mtd->of_path);