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

Tanmay Kathpalia tanmay.kathpalia at altera.com
Tue Jan 13 10:40:45 CET 2026


Hi,


On 1/13/2026 2:35 PM, Peng Fan wrote:
> On Thu, Jan 08, 2026 at 03:42:49PM +0100, Julien Stephan wrote:
>> If CONFIG_DM_GPIO is not enabled, compilation fails with the following
>> errors:
>>
>> aarch64-none-linux-gnu-ld: drivers/power/regulator/regulator_common.o: in function `regulator_common_of_to_plat':
>> <...>/u-boot/drivers/power/regulator/regulator_common.c:30: undefined reference to `gpio_request_by_name'
>> aarch64-none-linux-gnu-ld: drivers/power/regulator/regulator_common.o: in function `regulator_common_get_enable':
>> <...>/u-boot/drivers/power/regulator/regulator_common.c:57: undefined reference to `dm_gpio_get_value'
>> aarch64-none-linux-gnu-ld: drivers/power/regulator/regulator_common.o: in function `regulator_common_set_enable':
>> <...>/u-boot/drivers/power/regulator/regulator_common.c:92: undefined reference to `dm_gpio_set_value'
>> make: *** [Makefile:2029: u-boot] Error 139
>>
>> Since the enable gpio is optional we can conditionally skip these calls.
>>
>> Signed-off-by: Julien Stephan <jstephan at baylibre.com>
> 
> Reviewed-by: Peng Fan <peng.fan at nxp.com>

Reviewed-by: Tanmay Kathpalia <tanmay.kathpalia at altera.com>

Regards,
Tanmay


More information about the U-Boot mailing list