From 182a0e5dac5e2ae3751abc2eaa0398aa0150a131 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Sat, 23 Oct 2004 06:59:15 +0000 Subject: fix pfn vs page for older kernels (2.6.9-rc kernels many not work..) --- linux-core/i810_dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'linux-core/i810_dma.c') diff --git a/linux-core/i810_dma.c b/linux-core/i810_dma.c index 0f28a864..81551be8 100644 --- a/linux-core/i810_dma.c +++ b/linux-core/i810_dma.c @@ -130,7 +130,7 @@ int i810_mmap_buffers(struct file *filp, struct vm_area_struct *vma) buf_priv->currently_mapped = I810_BUF_MAPPED; unlock_kernel(); - if (remap_pfn_range(DRM_RPR_ARG(vma) vma->vm_start, + if (remap_pfn_range(vma, vma->vm_start, VM_OFFSET(vma) >> PAGE_SHIFT, vma->vm_end - vma->vm_start, vma->vm_page_prot)) -- cgit v1.2.3