From: Shawn Guo <shawn.guo@freescale.com>
To: David Miller <davem@davemloft.net>
Cc: <shawn.guo@linaro.org>, <devicetree-discuss@lists.ozlabs.org>,
<linux-kernel@vger.kernel.org>, <patches@linaro.org>
Subject: Re: [PATCH] dt: add of_alias_scan and of_alias_get_id
Date: Mon, 15 Aug 2011 14:36:44 +0800 [thread overview]
Message-ID: <20110815063643.GI7244@S2100-06.ap.freescale.net> (raw)
In-Reply-To: <20110814.230529.611834234177280886.davem@davemloft.net>
On Sun, Aug 14, 2011 at 11:05:29PM -0700, David Miller wrote:
> From: Shawn Guo <shawn.guo@freescale.com>
> Date: Mon, 15 Aug 2011 14:07:09 +0800
>
> > Can you please help me a little bit more with the "other places"?
>
> arch/sparc/kernel/prom*.c
>
How about the following changes? I do not even have a compiler to do
build test for sparc. Is it possible for me to get one from somewhere?
---8<-----
diff --git a/drivers/of/pdt.c b/drivers/of/pdt.c
index 4d87b5d..124280a 100644
--- a/drivers/of/pdt.c
+++ b/drivers/of/pdt.c
@@ -245,4 +245,11 @@ void __init of_pdt_build_devicetree(phandle root_node, struct of_pdt_ops *ops)
nextp = &allnodes->allnext;
allnodes->child = of_pdt_build_tree(allnodes,
of_pdt_prom_ops->getchild(allnodes->phandle), &nextp);
+
+ /* Get pointer to "/chosen" and "/aliasas" nodes for use everywhere */
+ of_chosen = of_find_node_by_path("/chosen");
+ if (of_chosen == NULL)
+ of_chosen = of_find_node_by_path("/chosen@0");
+ of_aliases = of_find_node_by_path("/aliases");
+ of_alias_scan(dt_alloc);
}
--
Regards,
Shawn
next prev parent reply other threads:[~2011-08-15 6:28 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-15 1:30 Shawn Guo
2011-08-15 5:43 ` David Miller
2011-08-15 6:07 ` Shawn Guo
2011-08-15 6:05 ` David Miller
2011-08-15 6:36 ` Shawn Guo [this message]
2011-08-15 6:35 ` David Miller
2011-08-15 6:47 ` Shawn Guo
2011-08-15 6:45 ` Shawn Guo
2011-08-15 7:28 ` [PATCH v2] " Shawn Guo
2011-09-19 15:18 ` Shawn Guo
2011-09-21 20:35 ` Grant Likely
2011-09-21 20:46 [PATCH] " Grant Likely
2011-09-21 20:55 ` David Miller
2011-09-22 6:53 ` Shawn Guo
2011-09-22 17:06 ` Grant Likely
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=20110815063643.GI7244@S2100-06.ap.freescale.net \
--to=shawn.guo@freescale.com \
--cc=davem@davemloft.net \
--cc=devicetree-discuss@lists.ozlabs.org \
--cc=linux-kernel@vger.kernel.org \
--cc=patches@linaro.org \
--cc=shawn.guo@linaro.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
all inboxes | Powered by JetHome®