Commit 56174d9a authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Ulf Hansson

mmc: MMC_SDHI_{SYS,INTERNAL}_DMAC should depend on HAS_DMA

If NO_DMA=y:

    ERROR: "bad_dma_ops" [drivers/mmc/host/renesas_sdhi_sys_dmac.ko] undefined!
    ERROR: "bad_dma_ops" [drivers/mmc/host/renesas_sdhi_internal_dmac.ko] undefined!

Add dependencies on HAS_DMA to fix this.

Fixes: e578afab ("mmc: renesas_sdhi: remove wrong depends on to enable compile test")
Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent bd9b9027
...@@ -605,7 +605,7 @@ config MMC_SDHI ...@@ -605,7 +605,7 @@ config MMC_SDHI
config MMC_SDHI_SYS_DMAC config MMC_SDHI_SYS_DMAC
tristate "DMA for SDHI SD/SDIO controllers using SYS-DMAC" tristate "DMA for SDHI SD/SDIO controllers using SYS-DMAC"
depends on MMC_SDHI depends on MMC_SDHI && HAS_DMA
default MMC_SDHI if (SUPERH || ARM) default MMC_SDHI if (SUPERH || ARM)
help help
This provides DMA support for SDHI SD/SDIO controllers This provides DMA support for SDHI SD/SDIO controllers
...@@ -615,7 +615,7 @@ config MMC_SDHI_SYS_DMAC ...@@ -615,7 +615,7 @@ config MMC_SDHI_SYS_DMAC
config MMC_SDHI_INTERNAL_DMAC config MMC_SDHI_INTERNAL_DMAC
tristate "DMA for SDHI SD/SDIO controllers using on-chip bus mastering" tristate "DMA for SDHI SD/SDIO controllers using on-chip bus mastering"
depends on ARM64 || COMPILE_TEST depends on ARM64 || COMPILE_TEST
depends on MMC_SDHI depends on MMC_SDHI && HAS_DMA
default MMC_SDHI if ARM64 default MMC_SDHI if ARM64
help help
This provides DMA support for SDHI SD/SDIO controllers This provides DMA support for SDHI SD/SDIO controllers
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment