From: Freddy Spierenburg <freddy@dusktilldawn.nl>
To: linux-mips@linux-mips.org
Subject: [PATCH] replaced io_remap_page_range() with io_remap_pfn_range()
Date: Fri, 17 Feb 2006 15:53:52 +0100 [thread overview]
Message-ID: <20060217145352.GD14066@dusktilldawn.nl> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 464 bytes --]
Hi,
Replaced the no longer existing io_remap_page_range() routine
with the io_remap_pfn_range() routine. Did not have a chance yet
to test the functionality of the driver, but at least the kernel
compiles cleanly again.
--
$ cat ~/.signature
Freddy Spierenburg <freddy@dusktilldawn.nl> http://snarl.nl/~freddy/
GnuPG: 0x7941D1E1=C948 5851 26D2 FA5C 39F1 E588 6F17 FD5D 7941 D1E1
$ # Please read http://www.ietf.org/rfc/rfc2015.txt before complain!
[-- Attachment #1.2: fb.patch --]
[-- Type: text/plain, Size: 691 bytes --]
diff -Naur master.orig/drivers/video/au1100fb.c master.good/drivers/video/au1100fb.c
--- master.orig/drivers/video/au1100fb.c 2006-02-17 10:57:28.000000000 +0000
+++ master.good/drivers/video/au1100fb.c 2006-02-17 14:05:58.000000000 +0000
@@ -50,6 +50,7 @@
#include <linux/interrupt.h>
#include <linux/ctype.h>
#include <linux/dma-mapping.h>
+#include <linux/platform_device.h>
#include <asm/mach-au1x00/au1000.h>
@@ -407,7 +408,7 @@
vma->vm_flags |= VM_IO;
- if (io_remap_page_range(vma, vma->vm_start, off,
+ if (io_remap_pfn_range(vma, vma->vm_start, off >> PAGE_SHIFT,
vma->vm_end - vma->vm_start,
vma->vm_page_prot)) {
return -EAGAIN;
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next reply other threads:[~2006-02-17 14:47 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-17 14:53 Freddy Spierenburg [this message]
2006-02-17 17:34 ` replaced io_remap_page_range() with io_remap_pfn_range() Jordan Crouse
2006-02-17 18:31 ` Freddy Spierenburg
2006-02-17 20:09 ` Jordan Crouse
2006-02-18 8:49 ` Freddy Spierenburg
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=20060217145352.GD14066@dusktilldawn.nl \
--to=freddy@dusktilldawn.nl \
--cc=linux-mips@linux-mips.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