From: Axel Lin <axel.lin@ingics.com>
Date: Thu, 20 Mar 2014 10:08:04 +0000 (+0800)
Subject: spi: xtensa-xtfpga: Enable driver compilation with COMPILE_TEST
X-Git-Tag: firefly_0821_release~176^2~4201^2^3
X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=be8dde46750be49fbf161dccd568b5cd14d3f004;p=firefly-linux-kernel-4.4.55.git

spi: xtensa-xtfpga: Enable driver compilation with COMPILE_TEST

This helps increasing build testing coverage.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Reviewed-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
---

diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig
index c87475db0f79..d36045f4fc24 100644
--- a/drivers/spi/Kconfig
+++ b/drivers/spi/Kconfig
@@ -522,7 +522,7 @@ config SPI_XILINX
 
 config SPI_XTENSA_XTFPGA
 	tristate "Xtensa SPI controller for xtfpga"
-	depends on XTENSA && XTENSA_PLATFORM_XTFPGA
+	depends on (XTENSA && XTENSA_PLATFORM_XTFPGA) || COMPILE_TEST
 	select SPI_BITBANG
 	help
 	  SPI driver for xtfpga SPI master controller.