From b99959323732ed0c81da2488252f64c02ad37fbe Mon Sep 17 00:00:00 2001 From: Vladimir Zapolskiy Date: Mon, 28 Oct 2013 18:08:15 +0200 Subject: [PATCH] mtd: mtdchar: return expected errors on mmap() call According both to POSIX.1-2008 and Linux Programmer's Manual mmap() syscall shouldn't return undocumented ENOSYS, this change replaces the errno with more appropriate ENODEV and EACCESS. Signed-off-by: Vladimir Zapolskiy Cc: David Woodhouse Signed-off-by: Brian Norris --- Reading git-format-patch failed