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

Commit fdce8864 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 fac2c0da
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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);
	total_length = PAGE_ALIGN((iova & ~PAGE_MASK) + total_length);
	iova &= PAGE_MASK;
	iova &= PAGE_MASK;


	iommu_unmap_range(mapping->domain, iova, total_length);
	iommu_unmap(mapping->domain, iova, total_length);
	__free_iova(mapping, iova, total_length);
	__free_iova(mapping, iova, total_length);
}
}