X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fvideo%2Fsgivwfb.c;h=4fc54822e09e482046489f102c39a78aa5b0b72a;hb=a9fdee76789476a10f923f9fb3c84993042da3ac;hp=8413907b379a147c1ac112604d7f897ed64a43ce;hpb=8d40237c730b8be87c1b80a5d96b9c603fefa829;p=linux-2.6.git diff --git a/drivers/video/sgivwfb.c b/drivers/video/sgivwfb.c index 8413907b3..4fc54822e 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_pfn_range(vma, vma->vm_start, offset >> PAGE_SHIFT, - size, vma->vm_page_prot)) + if (remap_page_range + (vma, vma->vm_start, offset, size, vma->vm_page_prot)) return -EAGAIN; vma->vm_file = file; printk(KERN_DEBUG "sgivwfb: mmap framebuffer P(%lx)->V(%lx)\n",