iommu/dma: Don't depend on CONFIG_DMA_DIRECT_REMAP
authorChristoph Hellwig <hch@lst.de>
Mon, 20 May 2019 07:29:45 +0000 (09:29 +0200)
committerJoerg Roedel <jroedel@suse.de>
Mon, 27 May 2019 15:31:12 +0000 (17:31 +0200)
commite6475eb010fae28a2550faf9f2f12dc13ab2931a
tree58b469d9740ea17fc3bbbd6eaa2c737aa8425678
parentefd9f10b70689fdeacadc95b6e0ea6dc311fa64f
iommu/dma: Don't depend on CONFIG_DMA_DIRECT_REMAP

For entirely dma coherent architectures there is no requirement to ever
remap dma coherent allocation.  Move all the remap and pool code under
IS_ENABLED() checks and drop the Kconfig dependency.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/Kconfig
drivers/iommu/dma-iommu.c