Skip to contentSkip to conversation

replaced io_remap_page_range() with io_remap_pfn_range()

PATCH New Freddy Spierenburg 1 participant 1 message Feb 17, 2006 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 replaced io_remap_page_range() with io_remap_pfn_range()

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.

Signature · 4 lines
$ cat ~/.signature
Freddy Spierenburg <[email protected]> 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!
drivers/video/au1100fb.c +2 -1
diff -Naur master.orig/drivers/video/au1100fb.c master.good/drivers/video/au1100fb.c
@@ -49,6 +49,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>
 
@@ -406,7 +407,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;