From: Jason Jin Date: Tue, 8 Jul 2008 01:21:08 +0000 (+0800) Subject: powerpc/85xx: Minor fixes for 85xxds and 8536ds board. X-Git-Tag: v3.12-rc1~20051^2~17 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b93eeba49efb30f88a83fc97ad22c255605654a1;p=kernel%2Fkernel-generic.git powerpc/85xx: Minor fixes for 85xxds and 8536ds board. Remove the "uninitialized use" compile warning and avoid potential runtime issue. Signed-off-by: Jason Jin Signed-off-by: Kumar Gala --- diff --git a/arch/powerpc/platforms/85xx/mpc8536_ds.c b/arch/powerpc/platforms/85xx/mpc8536_ds.c index 71d7c03..6b846aa 100644 --- a/arch/powerpc/platforms/85xx/mpc8536_ds.c +++ b/arch/powerpc/platforms/85xx/mpc8536_ds.c @@ -36,7 +36,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;