diff options
author | Marek Szyprowski <m.szyprowski@samsung.com> | 2012-05-15 13:04:13 -0400 |
---|---|---|
committer | Marek Szyprowski <m.szyprowski@samsung.com> | 2012-05-21 09:06:10 -0400 |
commit | 47142f07eea32e9c108f548a4b06c28bec7df6e4 (patch) | |
tree | b170dc8d992de4d968331f84bb67f34476477c72 /arch/arm/mm | |
parent | bca0fa5f12a6744a2b2e53154af65a51402b3426 (diff) |
ARM: dma-mapping: use dma_mmap_from_coherent()
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Diffstat (limited to 'arch/arm/mm')
-rw-r--r-- | arch/arm/mm/dma-mapping.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/mm/dma-mapping.c b/arch/arm/mm/dma-mapping.c index db23ae4aaaab..7ec08636fda5 100644 --- a/arch/arm/mm/dma-mapping.c +++ b/arch/arm/mm/dma-mapping.c | |||
@@ -401,6 +401,9 @@ static int dma_mmap(struct device *dev, struct vm_area_struct *vma, | |||
401 | unsigned long user_size, kern_size; | 401 | unsigned long user_size, kern_size; |
402 | struct arm_vmregion *c; | 402 | struct arm_vmregion *c; |
403 | 403 | ||
404 | if (dma_mmap_from_coherent(dev, vma, cpu_addr, size, &ret)) | ||
405 | return ret; | ||
406 | |||
404 | user_size = (vma->vm_end - vma->vm_start) >> PAGE_SHIFT; | 407 | user_size = (vma->vm_end - vma->vm_start) >> PAGE_SHIFT; |
405 | 408 | ||
406 | c = arm_vmregion_find(&consistent_head, (unsigned long)cpu_addr); | 409 | c = arm_vmregion_find(&consistent_head, (unsigned long)cpu_addr); |