Skip to content

Commit 1b7718f

Browse files
jic23willdeacon
authored andcommitted
perf/amlogic: Assign parents for event_source devices
Currently all these devices appear directly under /sys/devices/ Only root busses should appear there, so instead assign the pmu->dev parents to be the platform device. Link: https://lore.kernel.org/linux-cxl/[email protected]/ Reviewed-by: Jiucheng Xu <[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 3d957de commit 1b7718f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/perf/amlogic/meson_ddr_pmu_core.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,7 @@ int meson_ddr_pmu_create(struct platform_device *pdev)
492492
*pmu = (struct ddr_pmu) {
493493
.pmu = {
494494
.module = THIS_MODULE,
495+
.parent = &pdev->dev,
495496
.capabilities = PERF_PMU_CAP_NO_EXCLUDE,
496497
.task_ctx_nr = perf_invalid_context,
497498
.attr_groups = attr_groups,

0 commit comments

Comments
 (0)