Skip to content

Commit

Permalink
powerpc/85xx: Minor fixes for 85xxds and 8536ds board.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jason Jin authored and Kumar Gala committed Jul 14, 2008
1 parent d8267c1 commit b93eeba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion arch/powerpc/platforms/85xx/mpc8536_ds.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion arch/powerpc/platforms/85xx/mpc85xx_ds.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b93eeba

Please sign in to comment.