Skip to content

Commit c7451e4

Browse files
geertujoergroedel
authored andcommitted
iommu: SUN50I_IOMMU should depend on HAS_DMA
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+0x92e): undefined reference to `dma_pgprot' IOMMU_DMA must not be selected, unless HAS_DMA=y. Hence fix this by making SUN50I_IOMMU depend on HAS_DMA. Fixes: 4100b8c ("iommu: Add Allwinner H6 IOMMU driver") Signed-off-by: Geert Uytterhoeven <[email protected]> Acked-by: Maxime Ripard <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Joerg Roedel <[email protected]>
1 parent ce0fd38 commit c7451e4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/iommu/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,7 @@ config ROCKCHIP_IOMMU
305305

306306
config SUN50I_IOMMU
307307
bool "Allwinner H6 IOMMU Support"
308+
depends on HAS_DMA
308309
depends on ARCH_SUNXI || COMPILE_TEST
309310
select ARM_DMA_USE_IOMMU
310311
select IOMMU_API

0 commit comments

Comments
 (0)