linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Minor fixes for 85xxds and 8536ds board.
@ 2008-07-09  1:27 Jason Jin
  0 siblings, 0 replies; 2+ messages in thread
From: Jason Jin @ 2008-07-09  1:27 UTC (permalink / raw)
  To: galak; +Cc: linuxppc-dev, Jason Jin

Remove the "uninitialized use" compile warning and
avoid potential runtime issue.

Signed-off-by: Jason Jin <Jason.jin@freescale.com>
---
 arch/powerpc/platforms/85xx/mpc8536_ds.c |    2 +-
 arch/powerpc/platforms/85xx/mpc85xx_ds.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/powerpc/platforms/85xx/mpc8536_ds.c b/arch/powerpc/platforms/85xx/mpc8536_ds.c
index 9943816..69e2129 100644
--- a/arch/powerpc/platforms/85xx/mpc8536_ds.c
+++ b/arch/powerpc/platforms/85xx/mpc8536_ds.c
@@ -40,7 +40,7 @@ void __init mpc8536_ds_pic_init(void)
 	struct resource r;
 	struct device_node *np;
 
-	np = of_find_node_by_type(np, "open-pic");
+	np = of_find_node_by_type(NULL, "open-pic");
 	if (np == NULL) {
 		printk(KERN_ERR "Could not find open-pic node\n");
 		return;
diff --git a/arch/powerpc/platforms/85xx/mpc85xx_ds.c b/arch/powerpc/platforms/85xx/mpc85xx_ds.c
index 8b2d63d..25f41cd 100644
--- a/arch/powerpc/platforms/85xx/mpc85xx_ds.c
+++ b/arch/powerpc/platforms/85xx/mpc85xx_ds.c
@@ -64,7 +64,7 @@ void __init mpc85xx_ds_pic_init(void)
 	int cascade_irq;
 #endif
 
-	np = of_find_node_by_type(np, "open-pic");
+	np = of_find_node_by_type(NULL, "open-pic");
 	if (np == NULL) {
 		printk(KERN_ERR "Could not find open-pic node\n");
 		return;
-- 
1.5.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] Minor fixes for 85xxds and 8536ds board.
       [not found] <1215480068-6235-1-git-send-email-Jason.jin@freescale.com>
@ 2008-07-09 13:00 ` Kumar Gala
  0 siblings, 0 replies; 2+ messages in thread
From: Kumar Gala @ 2008-07-09 13:00 UTC (permalink / raw)
  To: Jason Jin; +Cc: linuxppc-dev list


On Jul 7, 2008, at 8:21 PM, Jason Jin wrote:

> Remove the "uninitialized use" compile warning and
> avoid potential runtime issue.
>
> Signed-off-by: Jason Jin <Jason.jin@freescale.com>
> ---
> arch/powerpc/platforms/85xx/mpc8536_ds.c |    2 +-
> arch/powerpc/platforms/85xx/mpc85xx_ds.c |    2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)

applied.

- k

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-07-09 13:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-09  1:27 [PATCH] Minor fixes for 85xxds and 8536ds board Jason Jin
     [not found] <1215480068-6235-1-git-send-email-Jason.jin@freescale.com>
2008-07-09 13:00 ` Kumar Gala

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).