iommu/dma: Fix NEED_SG_DMA_LENGTH dependency
IOMMU_DMA does indeed depend on scatterlists having a DMA length, but
the NEED_SG_DMA_LENGTH symbol should be selected, not depended upon.
Reported-by: Arnd Bergmann <[email protected]>
Signed-off-by: Robin Murphy <[email protected]>
Acked-by: Arnd Bergmann <[email protected]>
Signed-off-by: Joerg Roedel <[email protected]>
diff --git a/drivers/iommu/Kconfig b/drivers/iommu/Kconfig
index a1e75cb..66f1184 100644
--- a/drivers/iommu/Kconfig
+++ b/drivers/iommu/Kconfig
@@ -51,9 +51,9 @@
# IOMMU-agnostic DMA-mapping layer
config IOMMU_DMA
bool
- depends on NEED_SG_DMA_LENGTH
select IOMMU_API
select IOMMU_IOVA
+ select NEED_SG_DMA_LENGTH
config FSL_PAMU
bool "Freescale IOMMU support"