Skip to content

Commit f4144be

Browse files
jic23willdeacon
authored andcommitted
perf/arm-ccn: 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]/ Acked-by: Suzuki K Poulose <[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 e7ec479 commit f4144be

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/perf/arm-ccn.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1265,6 +1265,7 @@ static int arm_ccn_pmu_init(struct arm_ccn *ccn)
12651265
/* Perf driver registration */
12661266
ccn->dt.pmu = (struct pmu) {
12671267
.module = THIS_MODULE,
1268+
.parent = ccn->dev,
12681269
.attr_groups = arm_ccn_pmu_attr_groups,
12691270
.task_ctx_nr = perf_invalid_context,
12701271
.event_init = arm_ccn_pmu_event_init,

0 commit comments

Comments
 (0)