提交 ba82efbd 编写于 作者: M Michael Ellerman 提交者: Paul Mackerras

powerpc: Use of_find_node_with_property() in cell_iommu_fixed_mapping_init()

Signed-off-by: NMichael Ellerman <michael@ellerman.id.au>
Signed-off-by: NPaul Mackerras <paulus@samba.org>
上级 54018178
......@@ -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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册