[PATCH v2 3/3] power: regulator: common: fix compilation issue

Julien Stephan jstephan at baylibre.com
Thu Jan 15 15:25:12 CET 2026


Le jeu. 15 janv. 2026 à 13:57, Quentin Schulz
<quentin.schulz at cherry.de> a écrit :
>
> Hi Julien,
>
> On 1/8/26 3:42 PM, Julien Stephan wrote:
> [...]
> > @@ -51,10 +53,10 @@ int regulator_common_get_enable(const struct udevice *dev,
> >       struct regulator_common_plat *plat)
> >   {
> >       /* Enable GPIO is optional */
> > -     if (!dm_gpio_is_valid(&plat->gpio))
> > -             return true;
> > +     if (CONFIG_IS_ENABLED(DM_GPIO))
>
> Missing check on dm_gpio_is_valid() here?
>

Hi Quentin,
Good catch! I lost it in v2...

I'll send a v3.

Cheers
Julien
> Cheers,
> Quentin


More information about the U-Boot mailing list