mtd: nand: fix tmio_nand ecc correction
authorAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Fri, 4 Sep 2009 16:20:44 +0000 (01:20 +0900)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Sat, 19 Sep 2009 21:20:33 +0000 (14:20 -0700)
commit0f777fb9318739baf517c4f4ef66347d8898643d
treecba8a2f7e78d364561e23e21c93c7f287a87fab3
parentbe2f092bfc4f6a415bb4c3e2dcbf521a1f2a0fe5
mtd: nand: fix tmio_nand ecc correction

This driver may be reading 512 bytes at a times, but still calculates
256-byte sector ECC.  So the nand_correct_data() is not appropriate
for this driver.  Implement its ecc.correct function calling
__nand_correct_data() twice.

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Acked-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Acked-by: Vimal Singh <vimalsingh@ti.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/tmio_nand.c