Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 09b91702 authored by Charan Teja Reddy's avatar Charan Teja Reddy
Browse files

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: default avatarCharan Teja Reddy <charante@codeaurora.org>
parent 706381f2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1925,7 +1925,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);
}