0071-spi-qup-Depend-on-ARM-COMPILE_TEST-to-avoid-build-er.patch 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. From 7137376bc6415ab9b2f0c5983245a1273812e8b9 Mon Sep 17 00:00:00 2001
  2. From: Axel Lin <[email protected]>
  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. This driver uses writel_relaxed() which does not exist in x86, ppc, etc.
  7. Make it depend on ARM && COMPILE_TEST to avoid below build error:
  8. CC [M] drivers/spi/spi-qup.o
  9. drivers/spi/spi-qup.c: In function 'spi_qup_set_state':
  10. drivers/spi/spi-qup.c:180:3: error: implicit declaration of function 'writel_relaxed' [-Werror=implicit-function-declaration]
  11. cc1: some warnings being treated as errors
  12. make[2]: *** [drivers/spi/spi-qup.o] Error 1
  13. make[1]: *** [drivers/spi] Error 2
  14. make: *** [drivers] Error 2
  15. Reported-by: Stephen Rothwell <[email protected]>
  16. Signed-off-by: Axel Lin <[email protected]>
  17. Signed-off-by: Mark Brown <[email protected]>
  18. ---
  19. drivers/spi/Kconfig | 2 +-
  20. 1 file changed, 1 insertion(+), 1 deletion(-)
  21. --- a/drivers/spi/Kconfig
  22. +++ b/drivers/spi/Kconfig
  23. @@ -392,7 +392,7 @@ config SPI_RSPI
  24. config SPI_QUP
  25. tristate "Qualcomm SPI controller with QUP interface"
  26. - depends on ARCH_MSM_DT || COMPILE_TEST
  27. + depends on ARCH_MSM_DT || (ARM && COMPILE_TEST)
  28. help
  29. Qualcomm Universal Peripheral (QUP) core is an AHB slave that
  30. provides a common data path (an output FIFO and an input FIFO)