mxc_nand: fix correct_data function
authorSascha Hauer <s.hauer@pengutronix.de>
Fri, 6 Aug 2010 13:53:09 +0000 (15:53 +0200)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Fri, 6 Aug 2010 15:37:58 +0000 (16:37 +0100)
commit94f77e50d658be1d3ff23fb65e4d075a6f4ebee3
tree325e73dc7f558144f3fbd20900e531c14f69c1d4
parent1bc991808da890313c7a23ebc07e68ad8e79f42e
mxc_nand: fix correct_data function

The v2 controller has a totally different mechanism to check
whether the data we read had ecc errors or not. Implement this.
The mechanism in the v2 controller happens to be identical to
the v3 controller.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/mxc_nand.c