aboutsummaryrefslogtreecommitdiffstats
path: root/patches/1683-fpga-Remove-depends-on-HAS_DMA-in-case-of-platform-d.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/1683-fpga-Remove-depends-on-HAS_DMA-in-case-of-platform-d.patch')
-rw-r--r--patches/1683-fpga-Remove-depends-on-HAS_DMA-in-case-of-platform-d.patch43
1 files changed, 43 insertions, 0 deletions
diff --git a/patches/1683-fpga-Remove-depends-on-HAS_DMA-in-case-of-platform-d.patch b/patches/1683-fpga-Remove-depends-on-HAS_DMA-in-case-of-platform-d.patch
new file mode 100644
index 00000000000000..8a99c548cbae74
--- /dev/null
+++ b/patches/1683-fpga-Remove-depends-on-HAS_DMA-in-case-of-platform-d.patch
@@ -0,0 +1,43 @@
+From 0304ec809a41b83d1997f0a1a0239c9b799f4608 Mon Sep 17 00:00:00 2001
+From: Geert Uytterhoeven <geert@linux-m68k.org>
+Date: Tue, 17 Apr 2018 19:49:06 +0200
+Subject: [PATCH 1683/1795] fpga: Remove depends on HAS_DMA in case of platform
+ dependency
+
+Remove dependencies on HAS_DMA where a Kconfig symbol depends on another
+symbol that implies HAS_DMA, and, optionally, on "|| COMPILE_TEST".
+In most cases this other symbol is an architecture or platform specific
+symbol, or PCI.
+
+Generic symbols and drivers without platform dependencies keep their
+dependencies on HAS_DMA, to prevent compiling subsystems or drivers that
+cannot work anyway.
+
+This simplifies the dependencies, and allows to improve compile-testing.
+
+Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
+Reviewed-by: Mark Brown <broonie@kernel.org>
+Acked-by: Robin Murphy <robin.murphy@arm.com>
+Acked-by: Alan Tull <atull@kernel.org>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+(cherry picked from commit 84d84c5b8ff1a91bbd463a84df65b16ea60dff5d)
+Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
+---
+ drivers/fpga/Kconfig | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/drivers/fpga/Kconfig b/drivers/fpga/Kconfig
+index f47ef848bcd0..fd539132542e 100644
+--- a/drivers/fpga/Kconfig
++++ b/drivers/fpga/Kconfig
+@@ -53,7 +53,6 @@ config FPGA_MGR_ALTERA_CVP
+ config FPGA_MGR_ZYNQ_FPGA
+ tristate "Xilinx Zynq FPGA"
+ depends on ARCH_ZYNQ || COMPILE_TEST
+- depends on HAS_DMA
+ help
+ FPGA manager driver support for Xilinx Zynq FPGAs.
+
+--
+2.19.0
+