lkml.org 
[lkml]   [2004]   [Sep]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[vm 3/76] convert gbefb.c to use remap_pfn_range()
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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 14:06    [W:0.405 / U:0.220 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site