summaryrefslogtreecommitdiffstats
path: root/drivers/perf/arm_pmu.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/perf/arm_pmu.c')
-rw-r--r--drivers/perf/arm_pmu.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/perf/arm_pmu.c b/drivers/perf/arm_pmu.c
index 193a68cc2af4..1a39899d1392 100644
--- a/drivers/perf/arm_pmu.c
+++ b/drivers/perf/arm_pmu.c
@@ -1037,6 +1037,9 @@ int arm_pmu_device_probe(struct platform_device *pdev,
goto out_free;
}
+ if (!pmu->pmu.attr_groups)
+ pmu->pmu.attr_groups = pmu->attr_groups;
+
ret = cpu_pmu_init(pmu);
if (ret)
goto out_free;