[PATCH 7/8] fpga: Fix zynq-fpga dependencies
From: Richard Weinberger
Date: Fri Mar 25 2016 - 18:42:34 EST
Not all archs have DMA.
Fixes the following build error:
ERROR: "devm_ioremap_resource" [drivers/fpga/zynq-fpga.ko] undefined!
Cc: Alan Tull <atull@xxxxxxxxxxxxxxxxxxxxx>
Cc: Moritz Fischer <moritz.fischer@xxxxxxxxx>
Signed-off-by: Richard Weinberger <richard@xxxxxx>
---
drivers/fpga/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/fpga/Kconfig b/drivers/fpga/Kconfig
index c9b9fdf..490ecf0 100644
--- a/drivers/fpga/Kconfig
+++ b/drivers/fpga/Kconfig
@@ -20,6 +20,7 @@ config FPGA_MGR_SOCFPGA
FPGA manager driver support for Altera SOCFPGA.
config FPGA_MGR_ZYNQ_FPGA
+ depends on HAS_DMA
tristate "Xilinx Zynq FPGA"
help
FPGA manager driver support for Xilinx Zynq FPGAs.
--
1.8.4.5