Skip to content

Commit d1dcb72

Browse files
geertujoergroedel
authored andcommitted
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: e93a169 ("iommu: Enable compile testing for some of drivers") Signed-off-by: Geert Uytterhoeven <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Joerg Roedel <[email protected]>
1 parent 5375e87 commit d1dcb72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/iommu/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ config S390_AP_IOMMU
457457

458458
config MTK_IOMMU
459459
bool "MTK IOMMU Support"
460-
depends on ARM || ARM64 || COMPILE_TEST
460+
depends on HAS_DMA
461461
depends on ARCH_MEDIATEK || COMPILE_TEST
462462
select ARM_DMA_USE_IOMMU
463463
select IOMMU_API

0 commit comments

Comments
 (0)