Commit ba82efbd authored by Michael Ellerman's avatar Michael Ellerman Committed by Paul Mackerras
Browse files

powerpc: Use of_find_node_with_property() in cell_iommu_fixed_mapping_init()

parent 54018178
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -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) {