mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 01:53:29 +02:00
spi: amd: add CONFIG_PCI dependency
Without CONFIG_PCI, the module_pci_driver() macro is not defined:
drivers/spi/spi-amd-pci.c:67:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
67 | module_pci_driver(amd_spi_pci_driver);
Fixes: b644c27766 ("spi: spi_amd: Add PCI-based driver for AMD HID2 SPI controller")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://patch.msgid.link/20250410140809.812863-1-arnd@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
ed4db69169
commit
7a978d8fcf
|
|
@ -1266,6 +1266,7 @@ config SPI_ZYNQMP_GQSPI
|
|||
|
||||
config SPI_AMD
|
||||
tristate "AMD SPI controller"
|
||||
depends on PCI
|
||||
depends on SPI_MASTER || COMPILE_TEST
|
||||
help
|
||||
Enables SPI controller driver for AMD SoC.
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user