diff options
Diffstat (limited to 'arch/mips/mm/dma-default.c')
| -rw-r--r-- | arch/mips/mm/dma-default.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/mm/dma-default.c b/arch/mips/mm/dma-default.c index 2e2514e00720..e3e94d05f0fd 100644 --- a/arch/mips/mm/dma-default.c +++ b/arch/mips/mm/dma-default.c | |||
| @@ -179,7 +179,7 @@ static int mips_dma_mmap(struct device *dev, struct vm_area_struct *vma, | |||
| 179 | void *cpu_addr, dma_addr_t dma_addr, size_t size, | 179 | void *cpu_addr, dma_addr_t dma_addr, size_t size, |
| 180 | unsigned long attrs) | 180 | unsigned long attrs) |
| 181 | { | 181 | { |
| 182 | unsigned long user_count = (vma->vm_end - vma->vm_start) >> PAGE_SHIFT; | 182 | unsigned long user_count = vma_pages(vma); |
| 183 | unsigned long count = PAGE_ALIGN(size) >> PAGE_SHIFT; | 183 | unsigned long count = PAGE_ALIGN(size) >> PAGE_SHIFT; |
| 184 | unsigned long addr = (unsigned long)cpu_addr; | 184 | unsigned long addr = (unsigned long)cpu_addr; |
| 185 | unsigned long off = vma->vm_pgoff; | 185 | unsigned long off = vma->vm_pgoff; |
