diff options
| author | Daniel Schwierzeck <daniel.schwierzeck@gmail.com> | 2026-08-21 10:45:39 +0200 |
|---|---|---|
| committer | Viresh Kumar <viresh.kumar@linaro.org> | 2026-08-31 11:01:49 +0530 |
| commit | 801ade22c4fc078ea9b11e1f3fe3aae8b8bef886 (patch) | |
| tree | 91d7f0ef24155d8024621131b3730d99dc372ff1 /tools/lib/python/kdoc | |
| parent | cee9395acd8043be0644b25c34bfa86623f2b935 (diff) | |
cpufreq: airoha: fix probe failure with correct error check
dev_pm_domain_attach_list() returns the number of attached PM domains
on success (a positive count), or a negative error code on failure.
The driver checks "if (ret)" which treats a successful attachment of
one or more PM domains as an error, causing the probe to fail with
return code 1.
Fix by checking "if (ret < 0)" like all other users of this API.
Cc: stable@vger.kernel.org
Fixes: 84cf9e541ccc ("cpufreq: airoha: Add EN7581 CPUFreq SMCCC driver")
Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Reviewed-by: Zhongqiu Han <zhongqiu.han@oss.qualcomm.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Diffstat (limited to 'tools/lib/python/kdoc')
0 files changed, 0 insertions, 0 deletions
