Re: [PATCH V2] cpufreq: imx6q: No warning output when disabling a non-existing frequency of the OPP
From: Viresh Kumar
Date: Mon May 15 2023 - 05:20:25 EST
On 12-05-23, 17:07, Christoph Niedermaier wrote:
> 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@xxxxxxxxxxxxxxxxxx>
Applied. Thanks.
--
viresh