From a253de2fcfa11abadd4697a9d89137adf3f35f78 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Sun, 18 Feb 2007 17:59:40 +1100 Subject: drm: remove last usage of VM_OFFSET --- linux-core/i810_dma.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'linux-core/i810_dma.c') diff --git a/linux-core/i810_dma.c b/linux-core/i810_dma.c index ad4d2fce..41467001 100644 --- a/linux-core/i810_dma.c +++ b/linux-core/i810_dma.c @@ -125,8 +125,8 @@ static int i810_mmap_buffers(struct file *filp, struct vm_area_struct *vma) unlock_kernel(); if (io_remap_pfn_range(vma, vma->vm_start, - VM_OFFSET(vma) >> PAGE_SHIFT, - vma->vm_end - vma->vm_start, vma->vm_page_prot)) + vma->vm_pgoff, + vma->vm_end - vma->vm_start, vma->vm_page_prot)) return -EAGAIN; return 0; } -- cgit v1.2.3