From: Atsushi Nemoto Date: Fri, 4 Sep 2009 16:20:44 +0000 (+0900) Subject: mtd: nand: fix tmio_nand ecc correction X-Git-Tag: v2.6.32-rc1~160^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f777fb9318739baf517c4f4ef66347d8898643d;p=pandora-kernel.git 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 Acked-by: Dmitry Eremin-Solenikov Acked-by: Vimal Singh Signed-off-by: David Woodhouse --- Reading git-diff-tree failed