dma-mapping: simplify Kconfig dependencies
authorChristoph Hellwig <hch@lst.de>
Wed, 18 Apr 2018 08:11:52 +0000 (10:11 +0200)
committerChristoph Hellwig <hch@lst.de>
Sat, 19 May 2018 06:46:12 +0000 (08:46 +0200)
ARCH_DMA_ADDR_T_64BIT is always true for 64-bit architectures now, so we
can skip the clause requiring it.  'n' is the default default, so no need
to explicitly state it.

Tested-by: Alexey Brodkin <abrodkin@synopsys.com>
Acked-by: Vineet Gupta <vgupta@synopsys.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
lib/Kconfig

index 1d84e61..6c4e9d0 100644 (file)
@@ -443,13 +443,11 @@ config IOMMU_HELPER
 
 config DMA_DIRECT_OPS
        bool
-       depends on HAS_DMA && (!64BIT || ARCH_DMA_ADDR_T_64BIT)
-       default n
+       depends on HAS_DMA
 
 config DMA_VIRT_OPS
        bool
-       depends on HAS_DMA && (!64BIT || ARCH_DMA_ADDR_T_64BIT)
-       default n
+       depends on HAS_DMA
 
 config SWIOTLB
        bool