Re: [PATCH] PM / OPP: Remove useless check

From: Rafael J. Wysocki
Date: Thu May 05 2016 - 09:57:21 EST


On Wednesday, May 04, 2016 11:21:27 AM Stephen Boyd wrote:
> On 05/04, Viresh Kumar wrote:
> > Regulators are optional for devices using OPPs and the OPP core
> > shouldn't be printing any errors for such missing regulators.
> >
> > It was fine before the commit 0c717d0f9cb4, but that failed to update
> > this part of the code to remove an 'always true' check and an extra
> > unwanted print message.
> >
> > Fix that now.
> >
> > Fixes: 0c717d0f9cb4 ("PM / OPP: Initialize regulator pointer to an error value")
> > Reported-by: Marc Gonzalez <marc_gonzalez@xxxxxxxxxxxxxxxx>
> > Signed-off-by: Viresh Kumar <viresh.kumar@xxxxxxxxxx>
> > ---
>
> Reviewed-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx>

Applied, thanks!