All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] replaced io_remap_page_range() with io_remap_pfn_range()
@ 2006-02-17 14:53 Freddy Spierenburg
  2006-02-17 17:34 ` Jordan Crouse
  0 siblings, 1 reply; 5+ messages in thread
From: Freddy Spierenburg @ 2006-02-17 14:53 UTC (permalink / raw)
  To: linux-mips


[-- 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 --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-02-18  8:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-17 14:53 [PATCH] replaced io_remap_page_range() with io_remap_pfn_range() Freddy Spierenburg
2006-02-17 17:34 ` Jordan Crouse
2006-02-17 18:31   ` Freddy Spierenburg
2006-02-17 20:09     ` Jordan Crouse
2006-02-18  8:49       ` Freddy Spierenburg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.