提交 b93eeba4 编写于 作者: J Jason Jin 提交者: Kumar Gala

powerpc/85xx: Minor fixes for 85xxds and 8536ds board.

Remove the "uninitialized use" compile warning and avoid potential
runtime issue.
Signed-off-by: NJason Jin <Jason.jin@freescale.com>
Signed-off-by: NKumar Gala <galak@kernel.crashing.org>
上级 d8267c1a
......@@ -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;
......
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册