dma-iommu: remove __iommu_dma_mmap
authorChristoph Hellwig <hch@lst.de>
Wed, 9 Dec 2020 11:20:19 +0000 (12:20 +0100)
committerWill Deacon <will@kernel.org>
Wed, 9 Dec 2020 11:40:26 +0000 (11:40 +0000)
commit71fe89ceb55bc0a85121b757cc8d3fb6ff457263
tree3939b9cf702e443ad4c9133a7b55dada78af26c6
parentfefe8527a1e0e0014946c6b5b3b2e40cb32bb5d3
dma-iommu: remove __iommu_dma_mmap

The function has a single caller, so open code it there and take
advantage of the precalculated page count variable.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20201209112019.2625029-1-hch@lst.de
Signed-off-by: Will Deacon <will@kernel.org>
drivers/iommu/dma-iommu.c