diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig index 03a3037b0301..170c4c3cc7cb 100644 --- a/drivers/spi/Kconfig +++ b/drivers/spi/Kconfig @@ -780,6 +780,7 @@ config SPI_PHYTIUM config SPI_PHYTIUM_PLAT tristate "Phytium SPI controller platform support" + depends on ARCH_PHYTIUM || COMPILE_TEST select SPI_PHYTIUM help This selects a platform driver for Phytium SPI controller. @@ -789,6 +790,7 @@ config SPI_PHYTIUM_PLAT config SPI_PHYTIUM_PCI tristate "Phytium SPI controller PCI support" + depends on ARCH_PHYTIUM || COMPILE_TEST depends on PCI select SPI_PHYTIUM help