Re: [PATCH] cpufreq: cppc: Fix invalid return value in .get() callback

From: Viresh Kumar
Date: Wed Apr 16 2025 - 04:08:38 EST


On 14-04-25, 09:35, zhenglifeng (A) wrote:
> On 2025/4/13 18:11, Marc Zyngier wrote:
> > diff --git a/drivers/cpufreq/cppc_cpufreq.c b/drivers/cpufreq/cppc_cpufreq.c
> > index b3d74f9adcf0b..cb93f00bafdba 100644
> > --- a/drivers/cpufreq/cppc_cpufreq.c
> > +++ b/drivers/cpufreq/cppc_cpufreq.c
> > @@ -747,7 +747,7 @@ static unsigned int cppc_cpufreq_get_rate(unsigned int cpu)
> > int ret;
> >
> > if (!policy)
> > - return -ENODEV;
> > + return 0;
> >
> > cpu_data = policy->driver_data;
> >
>
> Reviewed-by: Lifeng Zheng <zhenglifeng1@xxxxxxxxxx>

Applied. Thanks.

--
viresh