Skip to content

Commit a8889fb

Browse files
jic23willdeacon
authored andcommitted
perf/arm-smmuv3: Assign parents for event_source device
Currently the PMU device appears directly under /sys/devices/ Only root busses should appear there, so instead assign the pmu->dev parent to be the platform device. Link: https://lore.kernel.org/linux-cxl/[email protected]/ Signed-off-by: Jonathan Cameron <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
1 parent bc81ae2 commit a8889fb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/perf/arm_smmuv3_pmu.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -860,6 +860,7 @@ static int smmu_pmu_probe(struct platform_device *pdev)
860860

861861
smmu_pmu->pmu = (struct pmu) {
862862
.module = THIS_MODULE,
863+
.parent = &pdev->dev,
863864
.task_ctx_nr = perf_invalid_context,
864865
.pmu_enable = smmu_pmu_enable,
865866
.pmu_disable = smmu_pmu_disable,

0 commit comments

Comments
 (0)