iommu/dma: Fix NEED_SG_DMA_LENGTH dependency
authorRobin Murphy <robin.murphy@arm.com>
Mon, 29 Feb 2016 11:13:39 +0000 (11:13 +0000)
committerJoerg Roedel <jroedel@suse.de>
Mon, 29 Feb 2016 16:23:50 +0000 (17:23 +0100)
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 <arnd@arndb.de>
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/Kconfig

index a1e75cba18e03f8fbbd63338b7678e8105303e36..66f118448c84140478fc82ea2135133e881f1470 100644 (file)
@@ -51,9 +51,9 @@ config OF_IOMMU
 # 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"