diff options
| author | Jonathan Cameron <[email protected]> | 2024-04-12 16:10:42 +0000 |
|---|---|---|
| committer | Will Deacon <[email protected]> | 2024-04-19 14:59:30 +0000 |
| commit | 1d194ab8571beb7363519d5c5b050a0cbd59b664 (patch) | |
| tree | ecc45360bf839d1401a8d74e8d3da32b366e1271 /drivers/perf/fsl_imx8_ddr_perf.c | |
| parent | perf/qcom: Assign parents for event_source devices (diff) | |
| download | kernel-1d194ab8571beb7363519d5c5b050a0cbd59b664.tar.gz kernel-1d194ab8571beb7363519d5c5b050a0cbd59b664.zip | |
perf/imx_ddr: Assign parents for event_source devices
Currently all this device appear 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]/
Cc: Frank Li <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'drivers/perf/fsl_imx8_ddr_perf.c')
| -rw-r--r-- | drivers/perf/fsl_imx8_ddr_perf.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/perf/fsl_imx8_ddr_perf.c b/drivers/perf/fsl_imx8_ddr_perf.c index 4e8fa5a48fcf..1bbdb29743c4 100644 --- a/drivers/perf/fsl_imx8_ddr_perf.c +++ b/drivers/perf/fsl_imx8_ddr_perf.c @@ -651,6 +651,7 @@ static int ddr_perf_init(struct ddr_pmu *pmu, void __iomem *base, *pmu = (struct ddr_pmu) { .pmu = (struct pmu) { .module = THIS_MODULE, + .parent = dev, .capabilities = PERF_PMU_CAP_NO_EXCLUDE, .task_ctx_nr = perf_invalid_context, .attr_groups = attr_groups, |
