diff options
| author | Charan Teja Reddy <charante@codeaurora.org> | 2016-10-24 20:12:33 +0530 |
|---|---|---|
| committer | Charan Teja Reddy <charante@codeaurora.org> | 2016-10-24 20:12:33 +0530 |
| commit | fdce886479b154e5b3b35a4cb67ce140f44aba03 (patch) | |
| tree | 00c32ae09e0ae127a295ac782235039c61fcd938 | |
| parent | fac2c0da16c3567c4838de4af0b794ecc55f1d0a (diff) | |
dma-mapping: use iommu_unmap for unmapping address
Use the iommu_unmap() instead of iommu_unmap_range() for unmapping of
address ranges.
Change-Id: I3f2f7108b21adc2672e7f15ca24667c1c80a9453
Signed-off-by: Charan Teja Reddy <charante@codeaurora.org>
| -rw-r--r-- | arch/arm/mm/dma-mapping.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mm/dma-mapping.c b/arch/arm/mm/dma-mapping.c index 52486c0e6598..369fca73a9ab 100644 --- a/arch/arm/mm/dma-mapping.c +++ b/arch/arm/mm/dma-mapping.c @@ -1818,7 +1818,7 @@ void arm_iommu_unmap_sg(struct device *dev, struct scatterlist *sg, int nents, total_length = PAGE_ALIGN((iova & ~PAGE_MASK) + total_length); iova &= PAGE_MASK; - iommu_unmap_range(mapping->domain, iova, total_length); + iommu_unmap(mapping->domain, iova, total_length); __free_iova(mapping, iova, total_length); } |
