aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/86xx
diff options
context:
space:
mode:
authorKumar Gala <galak@kernel.crashing.org>2007-10-04 01:28:43 -0400
committerKumar Gala <galak@kernel.crashing.org>2007-10-08 09:38:40 -0400
commitc9438affcb7ac0dda4c6c6961637fb272f7c32d4 (patch)
tree7a7118672e012239d820623e86e3a5e23cb034d6 /arch/powerpc/platforms/86xx
parent2fce1225af6f2d3bb9ffb4e6253400db61278594 (diff)
[POWERPC] Use for_each_ matching routinues for pci PHBs
On the Freescale embedded (83xx, 85xx, 86xx) and a few of the discrete bridges (mpc10x, tsi108) use the new for_each_compatible_node() or for_each_node_by_type() to provide more exact matching when looking for PHBs in the device tree. With the previous code it was possible to match on pci bridges since we were only matching on device_type. Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/platforms/86xx')
-rw-r--r--arch/powerpc/platforms/86xx/mpc86xx_hpcn.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c b/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c
index 3ec9d5a25750..6879b83ef95a 100644
--- a/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c
+++ b/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c
@@ -140,7 +140,7 @@ mpc86xx_hpcn_setup_arch(void)
140 ppc_md.progress("mpc86xx_hpcn_setup_arch()", 0); 140 ppc_md.progress("mpc86xx_hpcn_setup_arch()", 0);
141 141
142#ifdef CONFIG_PCI 142#ifdef CONFIG_PCI
143 for (np = NULL; (np = of_find_node_by_type(np, "pci")) != NULL;) { 143 for_each_compatible_node(np, "pci", "fsl,mpc8641-pcie") {
144 struct resource rsrc; 144 struct resource rsrc;
145 of_address_to_resource(np, 0, &rsrc); 145 of_address_to_resource(np, 0, &rsrc);
146 if ((rsrc.start & 0xfffff) == 0x8000) 146 if ((rsrc.start & 0xfffff) == 0x8000)
@@ -148,6 +148,7 @@ mpc86xx_hpcn_setup_arch(void)
148 else 148 else
149 fsl_add_bridge(np, 0); 149 fsl_add_bridge(np, 0);
150 } 150 }
151
151 uses_fsl_uli_m1575 = 1; 152 uses_fsl_uli_m1575 = 1;
152 ppc_md.pci_exclude_device = mpc86xx_exclude_device; 153 ppc_md.pci_exclude_device = mpc86xx_exclude_device;
153 154