ce773da713eedcbe3cd698d44dd3633450a01b06
[openwrt.git] / target / linux / ipq806x / patches / 0071-spi-qup-Depend-on-ARM-COMPILE_TEST-to-avoid-build-er.patch
1 From 7137376bc6415ab9b2f0c5983245a1273812e8b9 Mon Sep 17 00:00:00 2001
2 From: Axel Lin <axel.lin@ingics.com>
3 Date: Mon, 24 Feb 2014 12:07:51 +0800
4 Subject: [PATCH 071/182] spi: qup: Depend on ARM && COMPILE_TEST to avoid
5  build error
6
7 This driver uses writel_relaxed() which does not exist in x86, ppc, etc.
8 Make it depend on ARM && COMPILE_TEST to avoid below build error:
9
10   CC [M]  drivers/spi/spi-qup.o
11 drivers/spi/spi-qup.c: In function 'spi_qup_set_state':
12 drivers/spi/spi-qup.c:180:3: error: implicit declaration of function 'writel_relaxed' [-Werror=implicit-function-declaration]
13 cc1: some warnings being treated as errors
14 make[2]: *** [drivers/spi/spi-qup.o] Error 1
15 make[1]: *** [drivers/spi] Error 2
16 make: *** [drivers] Error 2
17
18 Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
19 Signed-off-by: Axel Lin <axel.lin@ingics.com>
20 Signed-off-by: Mark Brown <broonie@linaro.org>
21 ---
22  drivers/spi/Kconfig |    2 +-
23  1 file changed, 1 insertion(+), 1 deletion(-)
24
25 diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig
26 index e6a04f8..2d9111c 100644
27 --- a/drivers/spi/Kconfig
28 +++ b/drivers/spi/Kconfig
29 @@ -383,7 +383,7 @@ config SPI_RSPI
30  
31  config SPI_QUP
32         tristate "Qualcomm SPI controller with QUP interface"
33 -       depends on ARCH_MSM_DT || COMPILE_TEST
34 +       depends on ARCH_MSM_DT || (ARM && COMPILE_TEST)
35         help
36           Qualcomm Universal Peripheral (QUP) core is an AHB slave that
37           provides a common data path (an output FIFO and an input FIFO)
38 -- 
39 1.7.10.4
40