kernel: update 3.14 to 3.14.18
[15.05/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 --- a/drivers/spi/Kconfig
26 +++ b/drivers/spi/Kconfig
27 @@ -392,7 +392,7 @@ config SPI_RSPI
28  
29  config SPI_QUP
30         tristate "Qualcomm SPI controller with QUP interface"
31 -       depends on ARCH_MSM_DT || COMPILE_TEST
32 +       depends on ARCH_MSM_DT || (ARM && COMPILE_TEST)
33         help
34           Qualcomm Universal Peripheral (QUP) core is an AHB slave that
35           provides a common data path (an output FIFO and an input FIFO)