Skip to contentSkip to conversation

dmaengine: dw: Make it dependent to HAS_IOMEM

PATCH Applied Andy Shevchenko 3 participants 3 messages Mar 24, 2021 – Apr 12, 2021

Subsystems (2)
lore
Share & tools
lore

Andy Shevchenko

author reviewer
#0 lore raw

PATCH v2 1/1 dmaengine: dw: Make it dependent to HAS_IOMEM

Some architectures do not provide devm_*() APIs. Hence make the driver dependent on HAVE_IOMEM.

Fixes dbde5c2934d1 ("dw_dmac: use devm_* functions to simplify code")

---
v2: used proper option (Serge)

 drivers/dma/dw/Kconfig | 2 ++
 1 file changed, 2 insertions(+)
drivers/dma/dw/Kconfig +2 -0
index e5162690de8f..db25f9b7778c 100644
@@ -10,6 +10,7 @@ config DW_DMAC_CORE
 
 config DW_DMAC
 	tristate "Synopsys DesignWare AHB DMA platform driver"
+	depends on HAS_IOMEM
 	select DW_DMAC_CORE
 	help
 	  Support the Synopsys DesignWare AHB DMA controller. This
@@ -18,6 +19,7 @@ config DW_DMAC
 config DW_DMAC_PCI
 	tristate "Synopsys DesignWare AHB DMA PCI driver"
 	depends on PCI
+	depends on HAS_IOMEM
 	select DW_DMAC_CORE
 	help
 	  Support the Synopsys DesignWare AHB DMA controller on the
Signature · 1 line
2.30.2
Acked-by on v2 1/1
#1 lore raw
Quoted 24 lines · Andy Shevchenko

Some architectures do not provide devm_*() APIs. Hence make the driver dependent on HAVE_IOMEM.

Fixes dbde5c2934d1 ("dw_dmac: use devm_* functions to simplify code")

---
v2: used proper option (Serge)

 drivers/dma/dw/Kconfig | 2 ++
 1 file changed, 2 insertions(+)
drivers/dma/dw/Kconfig +1 -0
index e5162690de8f..db25f9b7778c 100644
@@ -10,6 +10,7 @@ config DW_DMAC_CORE
 
 config DW_DMAC
 	tristate "Synopsys DesignWare AHB DMA platform driver"
+	depends on HAS_IOMEM
 	select DW_DMAC_CORE
 	help
 	  Support the Synopsys DesignWare AHB DMA controller. This

drivers/dma/dw/Kconfig config DW_DMAC · line 25

Quoted 7 lines
drivers/dma/dw/Kconfig +1 -0
@@ -18,6 +19,7 @@ config DW_DMAC
 config DW_DMAC_PCI
 	tristate "Synopsys DesignWare AHB DMA PCI driver"
 	depends on PCI
+	depends on HAS_IOMEM
 	select DW_DMAC_CORE
 	help
 	  Support the Synopsys DesignWare AHB DMA controller on the
Signature · 1 line
viresh
maintainer Applied
#2 lore raw
In reply to Andy Shevchenko
Quoted 2 lines · Andy Shevchenko

Some architectures do not provide devm_*() APIs. Hence make the driver dependent on HAVE_IOMEM.

Applied, thanks

Signature · 1 line
~Vinod