Skip to content

Commit

Permalink
powerpc: Use of_find_node_with_property() in cell_iommu_fixed_mapping…
Browse files Browse the repository at this point in the history
…_init()

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
Michael Ellerman authored and Paul Mackerras committed Nov 19, 2008
1 parent 5401817 commit ba82efb
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions arch/powerpc/platforms/cell/iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit ba82efb

Please sign in to comment.