From: David Jander <david@protonic.nl>
To: s.hauer@pengutronix.de
Cc: barebox@lists.infradead.org, David Jander <david@protonic.nl>
Subject: [PATCH] of: base.c: Use correct device-tree in of_add_initrd()
Date: Wed, 14 Aug 2013 12:38:56 +0200 [thread overview]
Message-ID: <1376476736-15172-1-git-send-email-david@protonic.nl> (raw)
Otherwise only the internal DT is modified, not necessarily the one passed
to the kernel.
Signed-off-by: David Jander <david@protonic.nl>
---
drivers/of/base.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/of/base.c b/drivers/of/base.c
index 34a06c2..ce474be 100644
--- a/drivers/of/base.c
+++ b/drivers/of/base.c
@@ -1732,7 +1732,7 @@ int of_add_initrd(struct device_node *root, resource_size_t start,
struct device_node *chosen;
__be32 buf[2];
- chosen = of_find_node_by_path("/chosen");
+ chosen = of_find_node_by_path_from(root, "/chosen");
if (!chosen)
return -EINVAL;
--
1.8.1.2
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next reply other threads:[~2013-08-14 10:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-14 10:38 David Jander [this message]
2013-08-14 12:44 ` 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=1376476736-15172-1-git-send-email-david@protonic.nl \
--to=david@protonic.nl \
--cc=barebox@lists.infradead.org \
--cc=s.hauer@pengutronix.de \
/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