Skip to content

Commit 1d194ab

Browse files
jic23willdeacon
authored andcommitted
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]>
1 parent 6148865 commit 1d194ab

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/perf/fsl_imx8_ddr_perf.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -651,6 +651,7 @@ static int ddr_perf_init(struct ddr_pmu *pmu, void __iomem *base,
651651
*pmu = (struct ddr_pmu) {
652652
.pmu = (struct pmu) {
653653
.module = THIS_MODULE,
654+
.parent = dev,
654655
.capabilities = PERF_PMU_CAP_NO_EXCLUDE,
655656
.task_ctx_nr = perf_invalid_context,
656657
.attr_groups = attr_groups,

0 commit comments

Comments
 (0)