dmaengine: dw: Make it dependent to HAVE_IOMEM
Subsystems (2)
Andy Shevchenko
reviewerPATCH 1/1 dmaengine: dw: Make it dependent to HAVE_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")
Reported-by kernel test robot <[email protected]>
Signed-off-by Andy Shevchenko <[email protected]>
--- drivers/dma/dw/Kconfig | 2 ++ 1 file changed, 2 insertions(+)
drivers/dma/dw/Kconfig +2 -0
@@ -10,6 +10,7 @@ config DW_DMAC_CORE config DW_DMAC tristate "Synopsys DesignWare AHB DMA platform driver" + depends on HAVE_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 HAVE_IOMEM select DW_DMAC_CORE help Support the Synopsys DesignWare AHB DMA controller on the
Signature · 1 line
2.30.2
Hi Andy
Quoted 2 lines · Andy Shevchenko
Some architectures do not provide devm_*() APIs. Hence make the driver dependent on
HAVE_IOMEM.
You must have meant "HAS_IOMEM", right?
-Sergey
Quoted 31 lines
Fixes dbde5c2934d1 ("dw_dmac: use devm_* functions to simplify code")Reported-by kernel test robot <[email protected]>Signed-off-by Andy Shevchenko <[email protected]>--- drivers/dma/dw/Kconfig | 2 ++ 1 file changed, 2 insertions(+)drivers/dma/dw/Kconfig +2
-0@@ -10,6 +10,7 @@ config DW_DMAC_CORE config DW_DMAC tristate "Synopsys DesignWare AHB DMA platform driver" + depends on HAVE_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 HAVE_IOMEM select DW_DMAC_CORE help Support the Synopsys DesignWare AHB DMA controller on theSignature · 1 line
2.30.2
Andy Shevchenko
reviewerQuoted 7 lines · Serge Semin
Hi Andy
Quoted 2 lines · Andy Shevchenko
Some architectures do not provide devm_*() APIs. Hence make the driver dependent on
HAVE_IOMEM.You must have meant "
HAS_IOMEM", right?
Good catch!
My memory tricked me :-)
Signature · 2 lines
With Best Regards, Andy Shevchenko