Skip to content
Commit 11a3b0ac authored by Christoph Niedermaier's avatar Christoph Niedermaier Committed by Viresh Kumar
Browse files

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



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>
parent dcfce7c2
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