public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: William Lee Irwin III <wli@holomorphy.com>
To: Andrew Morton <akpm@osdl.org>
Cc: linux-kernel@vger.kernel.org
Subject: [vm 4/76] convert sgivwfb.c to use remap_pfn_range()
Date: Sat, 25 Sep 2004 00:03:46 -0700	[thread overview]
Message-ID: <20040925070346.GZ9106@holomorphy.com> (raw)
In-Reply-To: <20040925070151.GY9106@holomorphy.com>

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",

  reply	other threads:[~2004-09-25  7:04 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-25  6:53 [vm 0/76] convert remap_page_range() to remap_pfn_range() vs. 2.6.9-rc2-mm3 William Lee Irwin III
2004-09-25  6:58 ` [vm 1/76] introduce remap_pfn_range() William Lee Irwin III
2004-09-25  6:59   ` [vm 2/76] convert atyfb.c to use remap_pfn_range() William Lee Irwin III
2004-09-25  7:01     ` [vm 3/76] convert gbefb.c " William Lee Irwin III
2004-09-25  7:03       ` William Lee Irwin III [this message]
2004-09-25  7:05         ` [vm 5/76] convert igafb.c " William Lee Irwin III
2004-09-25  7:08           ` [vm 6/76] convert zr36120.c " William Lee Irwin III

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040925070346.GZ9106@holomorphy.com \
    --to=wli@holomorphy.com \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox