diff options
author | Jonathan Cameron <[email protected]> | 2024-04-12 17:10:49 +0100 |
---|---|---|
committer | Will Deacon <[email protected]> | 2024-04-19 15:59:31 +0100 |
commit | a8889fbf16bc954b8d11f16410963feee6cd9980 (patch) | |
tree | aa5c5447b817147ec528e876460747c907c89c35 | |
parent | bc81ae2efbb3f9fd12322787f475b77f51ca2a15 (diff) |
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]>
-rw-r--r-- | drivers/perf/arm_smmuv3_pmu.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/perf/arm_smmuv3_pmu.c b/drivers/perf/arm_smmuv3_pmu.c index 719aa953a1c4..d5fa92ba8373 100644 --- a/drivers/perf/arm_smmuv3_pmu.c +++ b/drivers/perf/arm_smmuv3_pmu.c @@ -860,6 +860,7 @@ static int smmu_pmu_probe(struct platform_device *pdev) smmu_pmu->pmu = (struct pmu) { .module = THIS_MODULE, + .parent = &pdev->dev, .task_ctx_nr = perf_invalid_context, .pmu_enable = smmu_pmu_enable, .pmu_disable = smmu_pmu_disable, |