summaryrefslogtreecommitdiff
path: root/linux-core/i810_dma.c
diff options
context:
space:
mode:
authorJon Smirl <jonsmirl@yahoo.com>2004-10-22 16:03:21 +0000
committerJon Smirl <jonsmirl@yahoo.com>2004-10-22 16:03:21 +0000
commitad87dd8427b6142c42d7b97c7a4170c89b6728ec (patch)
tree4042872f9ae1badc4584c8002cd5eb3af6f240f5 /linux-core/i810_dma.c
parentd76f734f68eeea32c94de6ad4979a94ca8e320db (diff)
Bring in patch from kernel for remap_pfn_range
Diffstat (limited to 'linux-core/i810_dma.c')
-rw-r--r--linux-core/i810_dma.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/linux-core/i810_dma.c b/linux-core/i810_dma.c
index 166ac5a7..0f28a864 100644
--- a/linux-core/i810_dma.c
+++ b/linux-core/i810_dma.c
@@ -130,9 +130,10 @@ int i810_mmap_buffers(struct file *filp, struct vm_area_struct *vma)
buf_priv->currently_mapped = I810_BUF_MAPPED;
unlock_kernel();
- if (remap_page_range(DRM_RPR_ARG(vma) vma->vm_start,
- VM_OFFSET(vma),
- vma->vm_end - vma->vm_start, vma->vm_page_prot))
+ if (remap_pfn_range(DRM_RPR_ARG(vma) vma->vm_start,
+ VM_OFFSET(vma) >> PAGE_SHIFT,
+ vma->vm_end - vma->vm_start,
+ vma->vm_page_prot))
return -EAGAIN;
return 0;
}