Messages in this thread Patch in this message | | | Date | Fri, 24 Sep 2004 23:59:59 -0700 | From | William Lee Irwin III <> | Subject | [vm 2/76] convert atyfb.c to use remap_pfn_range() |
| |
On Fri, Sep 24, 2004 at 11:58:16PM -0700, William Lee Irwin III wrote: > This patch introduces remap_pfn_range(), destined to replace > remap_page_range(). In the sequel, the callers of remap_page_range() > will be converted one at a time.
Convert atyfb.c to use remap_pfn_range(). Here (as in numerous other cases) shifting the argument right by PAGE_SHIFT suffices.
Index: mm3-2.6.9-rc2/drivers/video/aty/atyfb_base.c =================================================================== --- mm3-2.6.9-rc2.orig/drivers/video/aty/atyfb_base.c 2004-09-24 17:37:14.000000000 -0700 +++ mm3-2.6.9-rc2/drivers/video/aty/atyfb_base.c 2004-09-24 22:07:40.573015928 -0700 @@ -1174,8 +1174,8 @@ ~(par->mmap_map[i].prot_mask); pgprot_val(vma->vm_page_prot) |= par->mmap_map[i].prot_flag; - if (remap_page_range(vma, vma->vm_start + page, map_offset, - map_size, vma->vm_page_prot)) + if (remap_pfn_range(vma, vma->vm_start + page, + map_offset >> PAGE_SHIFT, map_size, vma->vm_page_prot)) return -EAGAIN; page += map_size; - 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/
| |