diff options
author | Dave Airlie <airlied@linux.ie> | 2004-10-23 06:59:15 +0000 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2004-10-23 06:59:15 +0000 |
commit | 182a0e5dac5e2ae3751abc2eaa0398aa0150a131 (patch) | |
tree | ec9525a5a06709b6ed7aabd5f3cf02fe9df6376c /linux-core/i830_dma.c | |
parent | 8d7e798d4c73650ed240a3ad194744b94043e31f (diff) |
fix pfn vs page for older kernels (2.6.9-rc kernels many not work..)
Diffstat (limited to 'linux-core/i830_dma.c')
-rw-r--r-- | linux-core/i830_dma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-core/i830_dma.c b/linux-core/i830_dma.c index c89331f7..a753ffd8 100644 --- a/linux-core/i830_dma.c +++ b/linux-core/i830_dma.c @@ -131,7 +131,7 @@ int i830_mmap_buffers(struct file *filp, struct vm_area_struct *vma) buf_priv->currently_mapped = I830_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)) |