Skip to content
Commit d497e1b2 authored by Christoph Niedermaier's avatar Christoph Niedermaier Committed by Greg Kroah-Hartman
Browse files

cpufreq: imx6q: don't warn for disabling a non-existing frequency



[ Upstream commit 11a3b0ac ]

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: default avatarChristoph Niedermaier <cniedermaier@dh-electronics.com>
[ Viresh : Updated commit subject ]
Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Stable-dep-of: 2e4e0984 ("cpufreq: imx6q: Don't disable 792 Mhz OPP unnecessarily")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent b1a66a05
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment