aboutsummaryrefslogtreecommitdiff
path: root/drivers/mtd/nand/cafe_ecc.c
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw2@infradead.org>2006-10-22 15:09:33 +0100
committerDavid Woodhouse <dwmw2@infradead.org>2006-10-22 15:09:33 +0100
commitfbad5696c5c45982d02e05b85922bad6eb6e6349 (patch)
treec0d2c95a81a985a7305c2fabb9f95743deb424a1 /drivers/mtd/nand/cafe_ecc.c
parent04459d7c6239193fa8de4a5107ee8fdb0f366e35 (diff)
[MTD] NAND: CAFÉ NAND driver cleanup, fix ECC on reading empty flash
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'drivers/mtd/nand/cafe_ecc.c')
-rw-r--r--drivers/mtd/nand/cafe_ecc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/mtd/nand/cafe_ecc.c b/drivers/mtd/nand/cafe_ecc.c
index 4df28a846fb..c4bec37e73e 100644
--- a/drivers/mtd/nand/cafe_ecc.c
+++ b/drivers/mtd/nand/cafe_ecc.c
@@ -499,10 +499,11 @@ static void solve_2x3(unsigned short m[2][3], unsigned short *coefs)
}
static unsigned char gf64_inv[64] = {
- 0, 1, 33, 62, 49, 43, 31, 44, 57, 37, 52, 28, 46, 40, 22, 25,
+ 0, 1, 33, 62, 49, 43, 31, 44, 57, 37, 52, 28, 46, 40, 22, 25,
61, 54, 51, 39, 26, 35, 14, 24, 23, 15, 20, 34, 11, 53, 45, 6,
63, 2, 27, 21, 56, 9, 50, 19, 13, 47, 48, 5, 7, 30, 12, 41,
- 42, 4, 38, 18, 10, 29, 17, 60, 36, 8, 59, 58, 55, 16, 3, 32};
+ 42, 4, 38, 18, 10, 29, 17, 60, 36, 8, 59, 58, 55, 16, 3, 32
+};
static unsigned short gf4096_inv(unsigned short din)
{