Revert "mtd: nand: add check for out of page read"
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Tue, 14 Dec 2010 15:07:57 +0000 (17:07 +0200)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Thu, 6 Jan 2011 15:13:25 +0000 (15:13 +0000)
commitbeda1d49941765c0765e0f3cb95b4a86de67745d
tree285df96da600a384a86ca30a642d64bc52afe668
parent4ccb3b4497ce01fab4933704fe21581e30fda1a5
Revert "mtd: nand: add check for out of page read"

This reverts commit e14feafbe0d5c6d64bb6fe4eba928cb57ac9a4c8.

The commit limits the maximum amount of bytes which can be read
at one go to the OOB size, which is incorrect, because mtd->read_oob()
allows reading multiple pages at a time, see comment near
"struct mtd_oob_ops" at include/linux/mtd/mtd.h. So this patch
breaks ABI and hence, has to be reverted.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/nand_base.c