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

Quentin Schulz quentin.schulz at cherry.de
Thu Jan 15 13:57:20 CET 2026


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?

Cheers,
Quentin


More information about the U-Boot mailing list