diff options
author | Jesper Nilsson <jesper.nilsson@axis.com> | 2010-08-12 08:32:58 -0400 |
---|---|---|
committer | Jesper Nilsson <jesper.nilsson@axis.com> | 2010-08-12 08:32:58 -0400 |
commit | 5272a7534afc5e888e702ca2c6f439a6c62f3752 (patch) | |
tree | c81c230e66c4561c087861058fd87099b851898c /arch/cris/include | |
parent | f1d23ed8218ca5afaf178a6495253dbb7fc98f57 (diff) |
CRIS: Define io_remap_pfn_range as remap_pfn_range
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>
Diffstat (limited to 'arch/cris/include')
-rw-r--r-- | arch/cris/include/asm/pgtable.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/cris/include/asm/pgtable.h b/arch/cris/include/asm/pgtable.h index 99ea6cd1b143..f63d6fccbc6c 100644 --- a/arch/cris/include/asm/pgtable.h +++ b/arch/cris/include/asm/pgtable.h | |||
@@ -260,6 +260,9 @@ static inline pgd_t * pgd_offset(const struct mm_struct *mm, unsigned long addre | |||
260 | #define pgd_ERROR(e) \ | 260 | #define pgd_ERROR(e) \ |
261 | printk("%s:%d: bad pgd %p(%08lx).\n", __FILE__, __LINE__, &(e), pgd_val(e)) | 261 | printk("%s:%d: bad pgd %p(%08lx).\n", __FILE__, __LINE__, &(e), pgd_val(e)) |
262 | 262 | ||
263 | #define io_remap_pfn_range(vma, vaddr, pfn, size, prot) \ | ||
264 | remap_pfn_range(vma, vaddr, pfn, size, prot) | ||
265 | |||
263 | 266 | ||
264 | extern pgd_t swapper_pg_dir[PTRS_PER_PGD]; /* defined in head.S */ | 267 | extern pgd_t swapper_pg_dir[PTRS_PER_PGD]; /* defined in head.S */ |
265 | 268 | ||