Skip to content

Commit 3d957de

Browse files
jic23willdeacon
authored andcommitted
perf/hisi-hns3: 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 PCI device. Link: https://lore.kernel.org/linux-cxl/[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 eff6af5 commit 3d957de

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/perf/hisilicon/hns3_pmu.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1419,6 +1419,7 @@ static int hns3_pmu_alloc_pmu(struct pci_dev *pdev, struct hns3_pmu *hns3_pmu)
14191419
hns3_pmu->pmu = (struct pmu) {
14201420
.name = name,
14211421
.module = THIS_MODULE,
1422+
.parent = &pdev->dev,
14221423
.event_init = hns3_pmu_event_init,
14231424
.pmu_enable = hns3_pmu_enable,
14241425
.pmu_disable = hns3_pmu_disable,

0 commit comments

Comments
 (0)