[MTD] [NAND] AT91 hardware ECC compile fix for at91sam9263 / at91sam9260

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Fri Apr 25 03:59:02 EDT 2008


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=d43fa1499622e3e561380c34e076aade954e2c2c
Commit:     d43fa1499622e3e561380c34e076aade954e2c2c
Parent:     77f5492c43adb4eb351fa0d163136877e8b2ed92
Author:     Richard Genoud <richard.genoud at gmail.com>
AuthorDate: Fri Apr 25 09:32:26 2008 +0200
Committer:  David Woodhouse <dwmw2 at infradead.org>
CommitDate: Fri Apr 25 08:38:56 2008 +0100

    [MTD] [NAND] AT91 hardware ECC compile fix for at91sam9263 / at91sam9260
    
    The sam926x docs allegedly don't list an "ECC_PARITY" field, and the
    header files in the upstream kernel don't have it either.
    
    Masking with it was useless anyway, so just remove it.
    
    Signed-off-by: Richard Genoud <richard.genoud at gmail.com>
    Signed-off-by: David Woodhouse <dwmw2 at infradead.org>
---
 drivers/mtd/nand/at91_nand.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mtd/nand/at91_nand.c b/drivers/mtd/nand/at91_nand.c
index c3eb203..09ebcc9 100644
--- a/drivers/mtd/nand/at91_nand.c
+++ b/drivers/mtd/nand/at91_nand.c
@@ -199,7 +199,7 @@ static int at91_nand_calculate(struct mtd_info *mtd,
 	unsigned int ecc_value;
 
 	/* get the first 2 ECC bytes */
-	ecc_value = ecc_readl(host->ecc, PR) & AT91_ECC_PARITY;
+	ecc_value = ecc_readl(host->ecc, PR);
 
 	ecc_code[eccpos[0]] = ecc_value & 0xFF;
 	ecc_code[eccpos[1]] = (ecc_value >> 8) & 0xFF;



More information about the linux-mtd-cvs mailing list