]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: return error code from mtd_unpoint
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Fri, 3 Feb 2012 11:20:43 +0000 (13:20 +0200)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 26 Mar 2012 23:27:19 +0000 (00:27 +0100)
commitca50a21b1e083a24cd33512137c2ae7181a47189
treedade127061f6c466f4146152572cc17c05d44761
parent78edec16218fce920447794bf4c45a73b990b9a8
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 <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/chips/cfi_cmdset_0001.c
drivers/mtd/devices/mtdram.c
drivers/mtd/devices/phram.c
drivers/mtd/devices/pmc551.c
drivers/mtd/devices/slram.c
drivers/mtd/lpddr/lpddr_cmds.c
drivers/mtd/mtdpart.c
include/linux/mtd/mtd.h
include/linux/mtd/pmc551.h