]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
powerpc/85xx: Minor fixes for 85xxds and 8536ds board.
authorJason Jin <Jason.jin@freescale.com>
Tue, 8 Jul 2008 01:21:08 +0000 (09:21 +0800)
committerKumar Gala <galak@kernel.crashing.org>
Mon, 14 Jul 2008 12:55:44 +0000 (07:55 -0500)
Remove the "uninitialized use" compile warning and avoid potential
runtime issue.

Signed-off-by: Jason Jin <Jason.jin@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/platforms/85xx/mpc8536_ds.c
arch/powerpc/platforms/85xx/mpc85xx_ds.c

index 71d7c038961fcaf49a0129b2a33d6d70fcf3f288..6b846aa1ced92e18cb383da73f0371e08b4f0fdb 100644 (file)
@@ -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;
index 8b2d63d4264ed628995ebe20b586aebe011842ec..25f41cd2d33abad60d1fca7a1fb8501107bf2f5f 100644 (file)
@@ -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;