summaryrefslogtreecommitdiff
path: root/drivers/perf/hisilicon/hisi_uncore_sllc_pmu.c
diff options
context:
space:
mode:
authorJunhao He <hejunhao3@huawei.com>2023-01-19 13:03:06 +0300
committerWill Deacon <will@kernel.org>2023-01-19 21:30:21 +0300
commit053b5579dacfc5763dda0c073ee14147421d32d7 (patch)
treedec7e3095a52eae0fb80112b336442855ded3a2e /drivers/perf/hisilicon/hisi_uncore_sllc_pmu.c
parent7f95da9d2dc4c20bb374c281ceb8fa40b6208f4b (diff)
downloadlinux-053b5579dacfc5763dda0c073ee14147421d32d7.tar.xz
drivers/perf: hisi: Simplify the parameters of hisi_pmu_init()
Use "hisi_pmu" to simplify the parameter list for the hisi_pmu_init() function. Signed-off-by: Junhao He <hejunhao3@huawei.com> Link: https://lore.kernel.org/r/20230119100307.3660-3-hejunhao3@huawei.com Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'drivers/perf/hisilicon/hisi_uncore_sllc_pmu.c')
-rw-r--r--drivers/perf/hisilicon/hisi_uncore_sllc_pmu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/perf/hisilicon/hisi_uncore_sllc_pmu.c b/drivers/perf/hisilicon/hisi_uncore_sllc_pmu.c
index b9c79f17230c..1e354433776a 100644
--- a/drivers/perf/hisilicon/hisi_uncore_sllc_pmu.c
+++ b/drivers/perf/hisilicon/hisi_uncore_sllc_pmu.c
@@ -445,7 +445,7 @@ static int hisi_sllc_pmu_probe(struct platform_device *pdev)
return ret;
}
- hisi_pmu_init(&sllc_pmu->pmu, name, sllc_pmu->pmu_events.attr_groups, THIS_MODULE);
+ hisi_pmu_init(sllc_pmu, name, THIS_MODULE);
ret = perf_pmu_register(&sllc_pmu->pmu, name, -1);
if (ret) {