[PATCH 2/2] bus: mvebu-mbus: fixup correct device tree
Uwe Kleine-König
u.kleine-koenig at pengutronix.de
Mon Jan 16 00:01:26 PST 2017
When booting with an external device tree this external tree must
be adapted, not the internal tree again.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig at pengutronix.de>
---
drivers/bus/mvebu-mbus.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/bus/mvebu-mbus.c b/drivers/bus/mvebu-mbus.c
index 735fa323c458..df5f7a32d346 100644
--- a/drivers/bus/mvebu-mbus.c
+++ b/drivers/bus/mvebu-mbus.c
@@ -754,7 +754,7 @@ static int mvebu_mbus_of_fixup(struct device_node *root, void *context)
{
struct device_node *np;
- for_each_matching_node(np, mvebu_mbus_dt_ids) {
+ for_each_matching_node_from(np, root, mvebu_mbus_dt_ids) {
struct property *p;
int n, pa, na, ns, lenp, size;
u32 *ranges;
--
2.11.0
More information about the barebox
mailing list