Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5272a753 authored by Jesper Nilsson's avatar Jesper Nilsson
Browse files

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 dd02b67d

Signed-off-by: default avatarJesper Nilsson <jesper.nilsson@axis.com>
parent f1d23ed8
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -260,6 +260,9 @@ static inline pgd_t * pgd_offset(const struct mm_struct *mm, unsigned long addre
#define pgd_ERROR(e) \
#define pgd_ERROR(e) \
        printk("%s:%d: bad pgd %p(%08lx).\n", __FILE__, __LINE__, &(e), pgd_val(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 */
extern pgd_t swapper_pg_dir[PTRS_PER_PGD]; /* defined in head.S */