From: Peng Fan <[email protected]>
On Thu, 15 Jan 2026 15:30:42 +0100, Julien Stephan wrote:
> If CONFIG_DM_GPIO is not enabled, compilation of
> drivers/power/regulator/regulator_common.c 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
>
> [...]
Applied, thanks!
[1/3] power: regulator: common: remove unnecessary debug trace
commit: 7dbec4f77c907c20c1ae707bfdd8ac356b0e0986
[2/3] power: regulator: common: use dm_gpio_is_valid helper
commit: 0411cac1616c5ac3223367e054f4e8eb3ad524bc
[3/3] power: regulator: common: fix compilation issue
commit: dab2c154f605b2f6742aa107dab2b55b9824fdf5
Best regards,
--
Peng Fan <[email protected]>