From: Artem Bityutskiy Date: Fri, 3 Feb 2012 11:20:43 +0000 (+0200) Subject: mtd: return error code from mtd_unpoint X-Git-Tag: v3.4-rc1~16^2~78 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e4e6e3fdf48c1b012e2b6e80ed1d7e99d4fa6d1;p=pandora-kernel.git mtd: return error code from mtd_unpoint The 'mtd_unpoint()' API function should be able to return an error code because it may fail if you specify incorrect offset. This patch changes this MTD API function and amends all the drivers correspondingly. Also return '-EOPNOTSUPP' from 'mtd_unpoint()' when the '->unpoint()' method is undefined. We do not really need this currently, but this just makes sense to be consistent with 'mtd_point()'. Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse --- Reading git-diff-tree failed