summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms
diff options
context:
space:
mode:
authorMichael Ellerman2008-11-12 19:20:40 +0100
committerPaul Mackerras2008-11-19 06:05:02 +0100
commitba82efbd3b48cb2a0e03c043911ce44c28f2825a (patch)
tree15a3941c61e110ff5773ff060d8dd525a7934842 /arch/powerpc/platforms
parentpowerpc: Use for_each_node_with_property() in of_irq_map_init() (diff)
downloadkernel-qcow2-linux-ba82efbd3b48cb2a0e03c043911ce44c28f2825a.tar.gz
kernel-qcow2-linux-ba82efbd3b48cb2a0e03c043911ce44c28f2825a.tar.xz
kernel-qcow2-linux-ba82efbd3b48cb2a0e03c043911ce44c28f2825a.zip
powerpc: Use of_find_node_with_property() in cell_iommu_fixed_mapping_init()
Signed-off-by: Michael Ellerman <michael@ellerman.id.au> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/platforms')
-rw-r--r--arch/powerpc/platforms/cell/iommu.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/powerpc/platforms/cell/iommu.c b/arch/powerpc/platforms/cell/iommu.c
index 3168272ab0d7..86db4dd170a0 100644
--- a/arch/powerpc/platforms/cell/iommu.c
+++ b/arch/powerpc/platforms/cell/iommu.c
@@ -1053,10 +1053,7 @@ static int __init cell_iommu_fixed_mapping_init(void)
}
/* We must have dma-ranges properties for fixed mapping to work */
- for (np = NULL; (np = of_find_all_nodes(np));) {
- if (of_find_property(np, "dma-ranges", NULL))
- break;
- }
+ np = of_find_node_with_property(NULL, "dma-ranges");
of_node_put(np);
if (!np) {