diff options
Diffstat (limited to 'arch')
-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 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 | ||