From: Anatolij Gustschin Date: Tue, 15 Jun 2010 07:30:15 +0000 (+0200) Subject: mtd: mtdchar: fix mmap for MTD RAM/ROM char devices X-Git-Tag: v2.6.36-rc1~301^2~44 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd02b67d5e9e7896891fa27eb5db65f55a290998;p=pandora-kernel.git 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: Anatolij Gustschin Acked-by: Mike Frysinger Signed-off-by: David Woodhouse --- Reading git-diff-tree failed