]> git.itanic.dy.fi Git - linux-stable/commit
cpufreq: imx6q: don't warn for disabling a non-existing frequency
authorChristoph Niedermaier <cniedermaier@dh-electronics.com>
Fri, 12 May 2023 15:07:11 +0000 (17:07 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Dec 2023 07:48:04 +0000 (08:48 +0100)
commitf0b6880658f5b489c7fca13aae0fa0f02258c8e9
tree488aa6dd6f148bdb9edb4330a9491a621b46203f
parentbb08df40d45131811456692c90d01519dec33f1c
cpufreq: imx6q: don't warn for disabling a non-existing frequency

[ Upstream commit 11a3b0ac33d95aa84be426e801f800997262a225 ]

It is confusing if a warning is given for disabling a non-existent
frequency of the operating performance points (OPP). In this case
the function dev_pm_opp_disable() returns -ENODEV. Check the return
value and avoid the output of a warning in this case. Avoid code
duplication by using a separate function.

Signed-off-by: Christoph Niedermaier <cniedermaier@dh-electronics.com>
[ Viresh : Updated commit subject ]
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Stable-dep-of: 2e4e0984c7d6 ("cpufreq: imx6q: Don't disable 792 Mhz OPP unnecessarily")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/cpufreq/imx6q-cpufreq.c