aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc
diff options
context:
space:
mode:
authorAnton Blanchard <anton@samba.org>2006-06-20 04:00:30 -0400
committerPaul Mackerras <paulus@samba.org>2006-06-21 01:01:33 -0400
commitd3c58fb177dc957af5cdac5ad1638d713fdb8765 (patch)
treee21ecac987f87343ab00763e616c242d56875744 /arch/powerpc
parent1e92a550e80fef01ebcc0bcd0896109cdb986c72 (diff)
[POWERPC] Dont look for class-code in pci children
Looking for class-code in PCI children breaks with direct slots. Lets just count all children. Signed-off-by: Anton Blanchard <anton@samba.org> Acked-by: Olof Johansson <olof@lixom.net> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc')
-rw-r--r--arch/powerpc/platforms/pseries/iommu.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/arch/powerpc/platforms/pseries/iommu.c b/arch/powerpc/platforms/pseries/iommu.c
index 2f66dc6503ff..d03a8b078f9d 100644
--- a/arch/powerpc/platforms/pseries/iommu.c
+++ b/arch/powerpc/platforms/pseries/iommu.c
@@ -331,13 +331,9 @@ static void iommu_bus_setup_pSeries(struct pci_bus *bus)
331 if (isa_dn_orig) 331 if (isa_dn_orig)
332 of_node_put(isa_dn_orig); 332 of_node_put(isa_dn_orig);
333 333
334 /* Count number of direct PCI children of the PHB. 334 /* Count number of direct PCI children of the PHB. */
335 * All PCI device nodes have class-code property, so it's
336 * an easy way to find them.
337 */
338 for (children = 0, tmp = dn->child; tmp; tmp = tmp->sibling) 335 for (children = 0, tmp = dn->child; tmp; tmp = tmp->sibling)
339 if (get_property(tmp, "class-code", NULL)) 336 children++;
340 children++;
341 337
342 DBG("Children: %d\n", children); 338 DBG("Children: %d\n", children);
343 339