diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2020-04-10 16:30:47 +0200 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2020-04-29 13:55:40 +0200 |
commit | d1dcb7255c2b0ae77fbe297e4543c6cfff54e9b9 (patch) | |
tree | 91f642de87566f8ce7b9bace70cf16703b472e12 | |
parent | 5375e874c7634f0e1795ec4b37260b724d481e86 (diff) | |
download | linux-stable-d1dcb7255c2b0ae77fbe297e4543c6cfff54e9b9.tar.gz linux-stable-d1dcb7255c2b0ae77fbe297e4543c6cfff54e9b9.tar.bz2 linux-stable-d1dcb7255c2b0ae77fbe297e4543c6cfff54e9b9.zip |
iommu/mediatek: Fix MTK_IOMMU dependencies
If NO_DMA=y (e.g. Sun-3 all{mod,yes}-config):
drivers/iommu/dma-iommu.o: In function `iommu_dma_mmap':
dma-iommu.c:(.text+0x836): undefined reference to `dma_pgprot'
IOMMU_DMA must not be selected, unless HAS_DMA=y.
Hence fix this by making MTK_IOMMU depend on HAS_DMA.
While at it, remove the dependency on ARM || ARM64, as that is already
implied by the dependency on ARCH_MEDIATEK.
Fixes: e93a1695d7fb5513 ("iommu: Enable compile testing for some of drivers")
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Link: https://lore.kernel.org/r/20200410143047.19691-1-geert@linux-m68k.org
Signed-off-by: Joerg Roedel <jroedel@suse.de>
-rw-r--r-- | drivers/iommu/Kconfig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iommu/Kconfig b/drivers/iommu/Kconfig index 58b4a4dbfc78..bead9aaea842 100644 --- a/drivers/iommu/Kconfig +++ b/drivers/iommu/Kconfig @@ -457,7 +457,7 @@ config S390_AP_IOMMU config MTK_IOMMU bool "MTK IOMMU Support" - depends on ARM || ARM64 || COMPILE_TEST + depends on HAS_DMA depends on ARCH_MEDIATEK || COMPILE_TEST select ARM_DMA_USE_IOMMU select IOMMU_API |