X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fvideo%2Fsgivwfb.c;h=8413907b379a147c1ac112604d7f897ed64a43ce;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=4fc54822e09e482046489f102c39a78aa5b0b72a;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/drivers/video/sgivwfb.c b/drivers/video/sgivwfb.c index 4fc54822e..8413907b3 100644 --- a/drivers/video/sgivwfb.c +++ b/drivers/video/sgivwfb.c @@ -719,8 +719,8 @@ static int sgivwfb_mmap(struct fb_info *info, struct file *file, pgprot_val(vma->vm_page_prot) = pgprot_val(vma->vm_page_prot) | _PAGE_PCD; vma->vm_flags |= VM_IO; - if (remap_page_range - (vma, vma->vm_start, offset, size, vma->vm_page_prot)) + if (remap_pfn_range(vma, vma->vm_start, offset >> PAGE_SHIFT, + size, vma->vm_page_prot)) return -EAGAIN; vma->vm_file = file; printk(KERN_DEBUG "sgivwfb: mmap framebuffer P(%lx)->V(%lx)\n",