summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/83xx/mpc8313_rdb.c
diff options
context:
space:
mode:
authorKumar Gala2007-10-04 07:28:43 +0200
committerKumar Gala2007-10-08 15:38:40 +0200
commitc9438affcb7ac0dda4c6c6961637fb272f7c32d4 (patch)
tree7a7118672e012239d820623e86e3a5e23cb034d6 /arch/powerpc/platforms/83xx/mpc8313_rdb.c
parent[POWERPC] FSL: Access PCIe LTSSM register with correct size (diff)
downloadkernel-qcow2-linux-c9438affcb7ac0dda4c6c6961637fb272f7c32d4.tar.gz
kernel-qcow2-linux-c9438affcb7ac0dda4c6c6961637fb272f7c32d4.tar.xz
kernel-qcow2-linux-c9438affcb7ac0dda4c6c6961637fb272f7c32d4.zip
[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/83xx/mpc8313_rdb.c')
-rw-r--r--arch/powerpc/platforms/83xx/mpc8313_rdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/83xx/mpc8313_rdb.c b/arch/powerpc/platforms/83xx/mpc8313_rdb.c
index 140b46ffdb19..33766b8f2594 100644
--- a/arch/powerpc/platforms/83xx/mpc8313_rdb.c
+++ b/arch/powerpc/platforms/83xx/mpc8313_rdb.c
@@ -43,7 +43,7 @@ static void __init mpc8313_rdb_setup_arch(void)
ppc_md.progress("mpc8313_rdb_setup_arch()", 0);
#ifdef CONFIG_PCI
- for (np = NULL; (np = of_find_node_by_type(np, "pci")) != NULL;)
+ for_each_compatible_node(np, "pci", "fsl,mpc8349-pci")
mpc83xx_add_bridge(np);
#endif
mpc831x_usb_cfg();