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/ZCLI9A40PJsyqAmq@kroah.com/ Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Link: https://lore.kernel.org/r/20240412161057.14099-23-Jonathan.Cameron@huawei.com Signed-off-by: Will Deacon <will@kernel.org>
1 parent bc81ae2 commit a8889fb

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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)