Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b93eeba4 authored by Jason Jin's avatar Jason Jin Committed by Kumar Gala
Browse files

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



Remove the "uninitialized use" compile warning and avoid potential
runtime issue.

Signed-off-by: default avatarJason Jin <Jason.jin@freescale.com>
Signed-off-by: default avatarKumar Gala <galak@kernel.crashing.org>
parent d8267c1a
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -36,7 +36,7 @@ void __init mpc8536_ds_pic_init(void)
	struct resource r;
	struct resource r;
	struct device_node *np;
	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) {
	if (np == NULL) {
		printk(KERN_ERR "Could not find open-pic node\n");
		printk(KERN_ERR "Could not find open-pic node\n");
		return;
		return;
+1 −1
Original line number Original line Diff line number Diff line
@@ -64,7 +64,7 @@ void __init mpc85xx_ds_pic_init(void)
	int cascade_irq;
	int cascade_irq;
#endif
#endif


	np = of_find_node_by_type(np, "open-pic");
	np = of_find_node_by_type(NULL, "open-pic");
	if (np == NULL) {
	if (np == NULL) {
		printk(KERN_ERR "Could not find open-pic node\n");
		printk(KERN_ERR "Could not find open-pic node\n");
		return;
		return;