aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2018-01-30 08:24:40 -0500
committerUlf Hansson <ulf.hansson@linaro.org>2018-01-31 05:27:23 -0500
commit56174d9a21496fce64fcc6ba2f475734c20c12e4 (patch)
tree385b31a80e92049004c442a0bebbbb15075cc956
parentbd9b902798ab14d19ca116b10bde581ddff8f905 (diff)
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: e578afab6e5f57e7 ("mmc: renesas_sdhi: remove wrong depends on to enable compile test") Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
-rw-r--r--drivers/mmc/host/Kconfig4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mmc/host/Kconfig b/drivers/mmc/host/Kconfig
index 67bd3344dd03..0eae619419d9 100644
--- a/drivers/mmc/host/Kconfig
+++ b/drivers/mmc/host/Kconfig
@@ -605,7 +605,7 @@ config MMC_SDHI
605 605
606config MMC_SDHI_SYS_DMAC 606config MMC_SDHI_SYS_DMAC
607 tristate "DMA for SDHI SD/SDIO controllers using SYS-DMAC" 607 tristate "DMA for SDHI SD/SDIO controllers using SYS-DMAC"
608 depends on MMC_SDHI 608 depends on MMC_SDHI && HAS_DMA
609 default MMC_SDHI if (SUPERH || ARM) 609 default MMC_SDHI if (SUPERH || ARM)
610 help 610 help
611 This provides DMA support for SDHI SD/SDIO controllers 611 This provides DMA support for SDHI SD/SDIO controllers
@@ -615,7 +615,7 @@ config MMC_SDHI_SYS_DMAC
615config MMC_SDHI_INTERNAL_DMAC 615config MMC_SDHI_INTERNAL_DMAC
616 tristate "DMA for SDHI SD/SDIO controllers using on-chip bus mastering" 616 tristate "DMA for SDHI SD/SDIO controllers using on-chip bus mastering"
617 depends on ARM64 || COMPILE_TEST 617 depends on ARM64 || COMPILE_TEST
618 depends on MMC_SDHI 618 depends on MMC_SDHI && HAS_DMA
619 default MMC_SDHI if ARM64 619 default MMC_SDHI if ARM64
620 help 620 help
621 This provides DMA support for SDHI SD/SDIO controllers 621 This provides DMA support for SDHI SD/SDIO controllers