Skip to content

Commit

Permalink
ARM: dma-mapping: use dma_mmap_from_coherent()
Browse files Browse the repository at this point in the history
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
  • Loading branch information
Marek Szyprowski committed May 21, 2012
1 parent bca0fa5 commit 47142f0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/arm/mm/dma-mapping.c
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,9 @@ static int dma_mmap(struct device *dev, struct vm_area_struct *vma,
unsigned long user_size, kern_size;
struct arm_vmregion *c;

if (dma_mmap_from_coherent(dev, vma, cpu_addr, size, &ret))
return ret;

user_size = (vma->vm_end - vma->vm_start) >> PAGE_SHIFT;

c = arm_vmregion_find(&consistent_head, (unsigned long)cpu_addr);
Expand Down

0 comments on commit 47142f0

Please sign in to comment.