mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-11-01 08:58:07 +00:00
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>
This commit is contained in:
parent
54018178ef
commit
ba82efbd3b
1 changed files with 1 additions and 4 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue