diff options
author | Jason Jin <Jason.jin@freescale.com> | 2008-07-07 21:21:08 -0400 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2008-07-14 08:55:44 -0400 |
commit | b93eeba49efb30f88a83fc97ad22c255605654a1 (patch) | |
tree | 3f63e8917343fd6ec6b95d031e5dc79f4b9fd1a2 /arch/powerpc/platforms/85xx/mpc8536_ds.c | |
parent | d8267c1a36864fc30a2ce01f4349a8f2931ae741 (diff) |
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 <Jason.jin@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/platforms/85xx/mpc8536_ds.c')
-rw-r--r-- | arch/powerpc/platforms/85xx/mpc8536_ds.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/85xx/mpc8536_ds.c b/arch/powerpc/platforms/85xx/mpc8536_ds.c index 71d7c038961f..6b846aa1ced9 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) | |||
36 | struct resource r; | 36 | struct resource r; |
37 | struct device_node *np; | 37 | struct device_node *np; |
38 | 38 | ||
39 | np = of_find_node_by_type(np, "open-pic"); | 39 | np = of_find_node_by_type(NULL, "open-pic"); |
40 | if (np == NULL) { | 40 | if (np == NULL) { |
41 | printk(KERN_ERR "Could not find open-pic node\n"); | 41 | printk(KERN_ERR "Could not find open-pic node\n"); |
42 | return; | 42 | return; |