[PATCH] dmaengine: xilinx: dpdma: Fix compilation when !HAS_IOMEM

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The xilinx-dpdma driver uses the devm_platform_ioremap_resource() API,
which is only available when HAS_IOMEM is selected. Depend on the
Kconfig symbol to fix the error.

While at it, also depend on ARCH_ZYNQ to avoid cluttering the
configuration on other platforms, unless COMPILE_TEST is selected. The
former would be enough to guarantee HAS_IOMEM, but with COMPILE_TEST we
still need to explicit dependendy on HAS_IOMEM.

Reported-by: kernel test robot <lkp@xxxxxxxxx>
Signed-off-by: Laurent Pinchart <laurent.pinchart@xxxxxxxxxxxxxxxx>
---
 drivers/dma/Kconfig | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/dma/Kconfig b/drivers/dma/Kconfig
index d242c7632621..205bc888d49f 100644
--- a/drivers/dma/Kconfig
+++ b/drivers/dma/Kconfig
@@ -702,6 +702,8 @@ config XILINX_ZYNQMP_DMA
 
 config XILINX_ZYNQMP_DPDMA
 	tristate "Xilinx DPDMA Engine"
+	depends on ARCH_ZYNQ || COMPILE_TEST
+	depends on HAS_IOMEM
 	select DMA_ENGINE
 	select DMA_VIRTUAL_CHANNELS
 	help
-- 
Regards,

Laurent Pinchart




[Index of Archives]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux PCI]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux