Thread (7 messages) 7 messages, 3 authors, 2007-12-22

Re: [PATCH 1/4] [POWERPC] qe_lib and users: get rid of device_type and model

flat view

From: Anton Vorontsov <hidden>
Date: 2007-12-22 00:34:06

On Fri, Dec 21, 2007 at 03:25:53PM -0600, Olof Johansson wrote:
Hi,

On Fri, Dec 21, 2007 at 11:20:54PM +0300, Anton Vorontsov wrote:
quoted
diff --git a/arch/powerpc/platforms/85xx/mpc85xx_mds.c b/arch/powerpc/platforms/85xx/mpc85xx_mds.c
index e6c63a5..a152bf8 100644
--- a/arch/powerpc/platforms/85xx/mpc85xx_mds.c
+++ b/arch/powerpc/platforms/85xx/mpc85xx_mds.c
@@ -94,7 +94,8 @@ static void __init mpc85xx_mds_setup_arch(void)
 #endif
 
 #ifdef CONFIG_QUICC_ENGINE
-	if ((np = of_find_node_by_name(NULL, "qe")) != NULL) {
+	np = of_find_node_by_name(NULL, "fsl,qe");
+	if (np) {
That won't work. Did you mean of_find_compatible_node()?
Yes. :-(
If so, you
still need to fall back to looking up by name for older device trees
that don't have the compatible field.
Yup.

Okay.. I'm approaching lucky v7. ;-)

Much thanks for catching this,

-- 
Anton Vorontsov
email: cbou@mail.ru
backup email: ya-cbou@yandex.ru
irc://irc.freenode.net/bd2
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help