gpio: 74x146: depend on DM_SPI
PATCH 1/1 gpio: 74x146: depend on DM_SPI
Currently, Kconfig allows building CONFIG_DM_74X164 without CONFIG_DM_SPI, which results in linker errors because this driver actually uses dm_spi_* functions:
drivers/gpio/74x164_gpio.o: in function `gen_74x164_write_conf':
undefined reference to `dm_spi_claim_bus'
undefined reference to `dm_spi_xfer'
undefined reference to `dm_spi_release_bus'
--- drivers/gpio/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpio/Kconfig +1 -1
@@ -516,7 +516,7 @@ config ZYNQ_GPIO config DM_74X164 bool "74x164 serial-in/parallel-out 8-bits shift register" - depends on DM_GPIO + depends on DM_GPIO && DM_SPI help Driver for 74x164 compatible serial-in/parallel-out 8-outputs shift registers, such as 74lv165, 74hc595.
---
base-commit: e62df6169eded226d02240eac54d60be8e9da960
change-id: 20250217-dmspi-267e777a493a
Best regards,
Signature · 1 line
J. Neuschäfer <[email protected]>
Quoted 10 lines · J. Neuschäfer
Currently,
Kconfigallows buildingCONFIG_DM_74X164withoutCONFIG_DM_SPI, which results in linker errors because this driver actually uses dm_spi_* functions:
drivers/gpio/74x164_gpio.o: in function `gen_74x164_write_conf':
undefined reference to `dm_spi_claim_bus'
undefined reference to `dm_spi_xfer'
undefined reference to `dm_spi_release_bus'[...]
Applied to u-boot/master, thanks!
Signature · 1 line
Tom