iommu/dma: Use for_each_sg in iommu_dma_alloc
authorChristoph Hellwig <hch@lst.de>
Mon, 20 May 2019 07:29:28 +0000 (09:29 +0200)
committerJoerg Roedel <jroedel@suse.de>
Mon, 27 May 2019 15:31:10 +0000 (17:31 +0200)
commit23f88e0a7e9f084e91a40cc90a15968fb1e5d506
treed26704de877676cf9bfa28ce016d7d9a74121a10
parentaf751d4308a7c80434b5f40fd44288d33dc1962f
iommu/dma: Use for_each_sg in iommu_dma_alloc

arch_dma_prep_coherent can handle physically contiguous ranges larger
than PAGE_SIZE just fine, which means we don't need a page-based
iterator.

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/dma-iommu.c