From 4f1ed52dd7958e85427c21c91f84e651c03c4367 Mon Sep 17 00:00:00 2001 From: Sven Peter Date: Wed, 15 Apr 2009 21:11:33 +0200 Subject: [PATCH] nand ecc correction fixed --- nand.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nand.c b/nand.c index 9e49e83..93eb173 100644 --- a/nand.c +++ b/nand.c @@ -265,8 +265,8 @@ void nand_initialize(void) int nand_correct(u32 pageno, void *data, void *ecc) { u8 *dp = (u8*)data; - u32 *ecc_read = (u32*)((u8*)ecc)+0x30; - u32 *ecc_calc = (u32*)((u8*)ecc)+0x40; + u32 *ecc_read = (u32*)((u8*)ecc+0x30); + u32 *ecc_calc = (u32*)((u8*)ecc+0x40); int i; int uncorrectable = 0; int corrected = 0;