[POWERPC] Use for_each_ matching routinues for pci PHBs
[pandora-kernel.git] / arch / powerpc / platforms / 85xx / mpc85xx_ads.c
index c22bc1c..acb1ef9 100644 (file)
@@ -204,8 +204,9 @@ static void __init mpc85xx_ads_setup_arch(void)
 #endif
 
 #ifdef CONFIG_PCI
-       for (np = NULL; (np = of_find_node_by_type(np, "pci")) != NULL;)
+       for_each_compatible_node(np, "pci", "fsl,mpc8540-pci")
                fsl_add_bridge(np, 1);
+
        ppc_md.pci_exclude_device = mpc85xx_exclude_device;
 #endif
 }