mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
To: barebox@lists.infradead.org
Subject: [PATCH 2/2] bus: mvebu-mbus: fixup correct device tree
Date: Mon, 16 Jan 2017 09:01:26 +0100	[thread overview]
Message-ID: <20170116080126.392-2-u.kleine-koenig@pengutronix.de> (raw)
In-Reply-To: <20170116080126.392-1-u.kleine-koenig@pengutronix.de>

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@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


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  reply	other threads:[~2017-01-16  8:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-16  8:01 [PATCH 1/2] of: provice for_each_matching_node_from Uwe Kleine-König
2017-01-16  8:01 ` Uwe Kleine-König [this message]
2017-01-16  8:04 ` [PATCH v2 1/2] of: provide for_each_matching_node_from Uwe Kleine-König
2017-01-17  6:56   ` Sascha Hauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170116080126.392-2-u.kleine-koenig@pengutronix.de \
    --to=u.kleine-koenig@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox