提交 47142f07 编写于 作者: M Marek Szyprowski

ARM: dma-mapping: use dma_mmap_from_coherent()

Signed-off-by: NMarek Szyprowski <m.szyprowski@samsung.com>
上级 bca0fa5f
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册