diff options
author | Anton Blanchard <anton@samba.org> | 2006-06-20 18:00:30 +1000 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-06-21 15:01:33 +1000 |
commit | d3c58fb177dc957af5cdac5ad1638d713fdb8765 (patch) | |
tree | e21ecac987f87343ab00763e616c242d56875744 /arch/powerpc | |
parent | 1e92a550e80fef01ebcc0bcd0896109cdb986c72 (diff) | |
download | op-kernel-dev-d3c58fb177dc957af5cdac5ad1638d713fdb8765.zip op-kernel-dev-d3c58fb177dc957af5cdac5ad1638d713fdb8765.tar.gz |
[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.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/arch/powerpc/platforms/pseries/iommu.c b/arch/powerpc/platforms/pseries/iommu.c index 2f66dc6..d03a8b0 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) if (isa_dn_orig) of_node_put(isa_dn_orig); - /* Count number of direct PCI children of the PHB. - * All PCI device nodes have class-code property, so it's - * an easy way to find them. - */ + /* Count number of direct PCI children of the PHB. */ for (children = 0, tmp = dn->child; tmp; tmp = tmp->sibling) - if (get_property(tmp, "class-code", NULL)) - children++; + children++; DBG("Children: %d\n", children); |