Messages in this thread Patch in this message | | | Date | Sat, 25 Sep 2004 00:03:46 -0700 | From | William Lee Irwin III <> | Subject | [vm 4/76] convert sgivwfb.c to use remap_pfn_range() |
| |
On Sat, Sep 25, 2004 at 12:01:51AM -0700, William Lee Irwin III wrote: > Conver the SGI GBE framebuffer driver to use remap_pfn_range().
Convert the SGI DBE framebuffer driver to use remap_pfn_range().
Index: mm3-2.6.9-rc2/drivers/video/sgivwfb.c =================================================================== --- mm3-2.6.9-rc2.orig/drivers/video/sgivwfb.c 2004-09-24 02:10:27.000000000 -0700 +++ mm3-2.6.9-rc2/drivers/video/sgivwfb.c 2004-09-24 22:08:57.675294600 -0700 @@ -719,8 +719,8 @@ 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", - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |