Skip to content

Commit 3b8786f

Browse files
wildea01Russell King
authored andcommitted
ARM: 8352/1: perf: Fix the pmu node name in warning message
With commit 9fd85eb ("ARM: pmu: add support for interrupt-affinity property"), we print a warning when we find a PMU SPI with a missing missing interrupt-affinity property in a pmu node. Unfortunately, we pass the wrong (NULL) device node to of_node_full_name, resulting in unhelpful messages such as: hw perfevents: Failed to parse <no-node>/interrupt-affinity[0] This patch fixes the name to that of the pmu node. Fixes: 9fd85eb (ARM: pmu: add support for interrupt-affinity property) Acked-by: Mark Rutland <mark.rutland@arm.com> Signed-off-by: Will Deacon <will.deacon@arm.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
1 parent 338d9dd commit 3b8786f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/arm/kernel/perf_event_cpu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ static int of_pmu_irq_cfg(struct platform_device *pdev)
322322
i);
323323
if (!dn) {
324324
pr_warn("Failed to parse %s/interrupt-affinity[%d]\n",
325-
of_node_full_name(dn), i);
325+
of_node_full_name(pdev->dev.of_node), i);
326326
break;
327327
}
328328

0 commit comments

Comments
 (0)