powerpc/85xx/86xx: some refactoring for fsl_uli1575 code
[firefly-linux-kernel-4.4.55.git] / arch / powerpc / platforms / 85xx / mpc85xx_ds.c
index 8b2d63d4264ed628995ebe20b586aebe011842ec..00c535806647993b6de07ff5e14eb5e06ddd109f 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;
@@ -115,7 +115,6 @@ void __init mpc85xx_ds_pic_init(void)
 
 #ifdef CONFIG_PCI
 static int primary_phb_addr;
-extern int uses_fsl_uli_m1575;
 extern int uli_exclude_device(struct pci_controller *hose,
                                u_char bus, u_char devfn);
 
@@ -161,7 +160,6 @@ static void __init mpc85xx_ds_setup_arch(void)
                }
        }
 
-       uses_fsl_uli_m1575 = 1;
        ppc_md.pci_exclude_device = mpc85xx_exclude_device;
 #endif