The HiSilicon Kunpeng SPI controller is only present on HiSilicon
Kunpeng SoCs.  Hence add a dependency on ARCH_HISI, to prevent asking
the user about this driver when configuring a kernel without Hisilicon
platform support.

Fixes: c770d8631e1810d8 ("spi: Add HiSilicon SPI Controller Driver for Kunpeng 
SoCs")
Signed-off-by: Geert Uytterhoeven <geert+rene...@glider.be>
---
 drivers/spi/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig
index 1ffcad19c0562a39..7d438ad343598bb8 100644
--- a/drivers/spi/Kconfig
+++ b/drivers/spi/Kconfig
@@ -334,7 +334,7 @@ config SPI_FSL_QUADSPI
 
 config SPI_HISI_KUNPENG
        tristate "HiSilicon SPI Controller for Kunpeng SoCs"
-       depends on (ARM64 && ACPI) || COMPILE_TEST
+       depends on (ARM64 && ARCH_HISI && ACPI) || COMPILE_TEST
        help
          This enables support for HiSilicon SPI controller found on
          Kunpeng SoCs.
-- 
2.25.1

Reply via email to