Skip to content

Commit a9a455e

Browse files
committed
iommu: fsl_pamu: use for_each_of_cpu_node iterator
Use the for_each_of_cpu_node iterator to iterate over cpu nodes. This has the side effect of defaulting to iterating using "cpu" node names in preference to the deprecated (for FDT) device_type == "cpu". Cc: Joerg Roedel <joro@8bytes.org> Cc: iommu@lists.linux-foundation.org Signed-off-by: Rob Herring <robh@kernel.org>
1 parent 37dc218 commit a9a455e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/iommu/fsl_pamu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ u32 get_stash_id(u32 stash_dest_hint, u32 vcpu)
543543
return ~(u32)0;
544544
}
545545

546-
for_each_node_by_type(node, "cpu") {
546+
for_each_of_cpu_node(node) {
547547
prop = of_get_property(node, "reg", &len);
548548
for (i = 0; i < len / sizeof(u32); i++) {
549549
if (be32_to_cpup(&prop[i]) == vcpu) {

0 commit comments

Comments
 (0)