summaryrefslogtreecommitdiff
path: root/tools/perf
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2026-01-28 03:37:49 +0300
committerMark Brown <broonie@kernel.org>2026-01-28 03:37:49 +0300
commit1924bd68a0c06f9f2c06cf35e60dfc55cdc34a91 (patch)
treec38cc30d6b1df687a1b02c157966a33fd8468e51 /tools/perf
parentab2e3fa491734b655e1d37aee058fa7195174d74 (diff)
parentc76d50b71e898694c946993eb3c77f50efa97254 (diff)
downloadlinux-1924bd68a0c06f9f2c06cf35e60dfc55cdc34a91.tar.xz
ASoC: codec: Remove ak4641/pxa2xx-ac97 and convert to
Merge series from "Peng Fan (OSS)" <peng.fan@oss.nxp.com>: The main goal is to convert drivers to use GPIO descriptors. While reading the code, I think it is time to remove ak4641 and pxa2xx-ac97 driver, more info could be found in commit log of each patch. Then only need to convert sound/arm/pxa2xx-ac97-lib.c to use GPIO descriptors. Not have hardware to test the pxa2xx ac97.
Diffstat (limited to 'tools/perf')
-rw-r--r--tools/perf/util/parse-events.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/perf/util/parse-events.c b/tools/perf/util/parse-events.c
index 17c1c36a7bf9..000c89a1e50d 100644
--- a/tools/perf/util/parse-events.c
+++ b/tools/perf/util/parse-events.c
@@ -251,8 +251,11 @@ __add_event(struct list_head *list, int *idx,
event_attr_init(attr);
evsel = evsel__new_idx(attr, *idx);
- if (!evsel)
- goto out_err;
+ if (!evsel) {
+ perf_cpu_map__put(cpus);
+ perf_cpu_map__put(pmu_cpus);
+ return NULL;
+ }
if (name) {
evsel->name = strdup(name);