Skip to content

Commit 6eaa843

Browse files
jic23Shawn Guo
authored andcommitted
ARM: imx: Assign parents for mmdc event_source devices
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]/ Cc: Shawn Guo <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]> Signed-off-by: Shawn Guo <[email protected]>
1 parent 4cece76 commit 6eaa843

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/arm/mach-imx/mmdc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,7 @@ static int mmdc_pmu_init(struct mmdc_pmu *pmu_mmdc,
437437
{
438438
*pmu_mmdc = (struct mmdc_pmu) {
439439
.pmu = (struct pmu) {
440+
.parent = dev,
440441
.task_ctx_nr = perf_invalid_context,
441442
.attr_groups = attr_groups,
442443
.event_init = mmdc_pmu_event_init,

0 commit comments

Comments
 (0)