From 57fcd1440fcb730b17325ea833affc0a836f4dfd Mon Sep 17 00:00:00 2001 From: William Lee Irwin III Date: Tue, 19 Oct 2004 18:28:49 -0700 Subject: [PATCH] vm: convert users of remap_page_range() under include/asm-*/ to use remap_pfn_range() This patch converts uses of remap_page_range() via io_remap_page_range() in include/asm-*/ to use remap_pfn_range(). io_remap_page_range() has a similar physical address overflow issue that needs to be addressed later. Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- include/asm-mips/pgtable.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/asm-mips') diff --git a/include/asm-mips/pgtable.h b/include/asm-mips/pgtable.h index 9d5a8fad0949..c5d69bb707aa 100644 --- a/include/asm-mips/pgtable.h +++ b/include/asm-mips/pgtable.h @@ -245,7 +245,8 @@ static inline void update_mmu_cache(struct vm_area_struct *vma, */ #define HAVE_ARCH_UNMAPPED_AREA -#define io_remap_page_range remap_page_range +#define io_remap_page_range(vma, vaddr, paddr, size, prot) \ + remap_pfn_range(vma, vaddr, (paddr) >> PAGE_SHIFT, size, prot) /* * No page table caches to initialise -- cgit v1.2.3