Skip to content

Commit

Permalink
[PATCH] au1100fb: replaced io_remap_page_range() with io_remap_pfn_ra…
Browse files Browse the repository at this point in the history
…nge()

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.

Signed-off-by: Antonino Daplas <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Freddy Spierenburg authored and Linus Torvalds committed Feb 24, 2006
1 parent 80c410d commit cacfc8c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/video/au1100fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down Expand Up @@ -406,7 +407,7 @@ int au1100fb_fb_mmap(struct fb_info *fbi, struct vm_area_struct *vma)

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;
Expand Down

0 comments on commit cacfc8c

Please sign in to comment.