[vm 3/76] convert gbefb.c to use remap_pfn_range()

From: William Lee Irwin III
Date: Sat Sep 25 2004 - 02:03:45 EST


On Fri, Sep 24, 2004 at 11:59:59PM -0700, William Lee Irwin III wrote:
> Convert atyfb.c to use remap_pfn_range(). Here (as in numerous other
> cases) shifting the argument right by PAGE_SHIFT suffices.

Conver the SGI GBE framebuffer driver to use remap_pfn_range().


Index: mm3-2.6.9-rc2/drivers/video/gbefb.c
===================================================================
--- mm3-2.6.9-rc2.orig/drivers/video/gbefb.c 2004-09-24 02:10:27.000000000 -0700
+++ mm3-2.6.9-rc2/drivers/video/gbefb.c 2004-09-24 22:08:19.215141432 -0700
@@ -1018,8 +1018,8 @@
else
phys_size = TILE_SIZE - offset;

- if (remap_page_range
- (vma, addr, phys_addr, phys_size, vma->vm_page_prot))
+ if (remap_pfn_range(vma, addr, phys_addr >> PAGE_SHIFT,
+ phys_size, vma->vm_page_prot))
return -EAGAIN;

offset = 0;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/