]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
CRIS: Define io_remap_pfn_range as remap_pfn_range
authorJesper Nilsson <jesper.nilsson@axis.com>
Thu, 12 Aug 2010 12:32:58 +0000 (14:32 +0200)
committerJesper Nilsson <jesper.nilsson@axis.com>
Thu, 12 Aug 2010 12:32:58 +0000 (14:32 +0200)
CRIS don't need any special mapping for io, but didn't define this,
meaning that all uses of io_remap_pfn_range lead to compile errors.

This fixes a compile error introduced in CRIS when drivers/mtd/mtdchar.c
mmap handling was changed in commit dd02b67d5e9e7896891fa27eb5db65f55a290998

Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
arch/cris/include/asm/pgtable.h

index 99ea6cd1b1436f03a171ad9e3c42a0205780734d..f63d6fccbc6caf18906fa06c99d72e44e3b17792 100644 (file)
@@ -260,6 +260,9 @@ static inline pgd_t * pgd_offset(const struct mm_struct *mm, unsigned long addre
 #define pgd_ERROR(e) \
         printk("%s:%d: bad pgd %p(%08lx).\n", __FILE__, __LINE__, &(e), pgd_val(e))
 
+#define io_remap_pfn_range(vma, vaddr, pfn, size, prot)         \
+               remap_pfn_range(vma, vaddr, pfn, size, prot)
+
 
 extern pgd_t swapper_pg_dir[PTRS_PER_PGD]; /* defined in head.S */