Skip to content
Commit dd02b67d authored by Anatolij Gustschin's avatar Anatolij Gustschin Committed by David Woodhouse
Browse files

mtd: mtdchar: fix mmap for MTD RAM/ROM char devices



For no-mmu systems mmap() on RAM/ROM devices already works
but for systems with mmu it probably was not tested and
doesn't work.

This patch allows using mmap() on MTD RAM/ROM devices on systems
with MMU. It has been tested on mpc5121e based platform with
MR0A16A MRAM device attached over LocalBus.

Signed-off-by: default avatarAnatolij Gustschin <agust@denx.de>
Acked-by: default avatarMike Frysinger <vapier@gentoo.org>
Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent 68640c2a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment