aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/mtd/nand/at91_nand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/at91_nand.c b/drivers/mtd/nand/at91_nand.c
index c3eb203a2ad0..09ebcc93ed3b 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,
199 unsigned int ecc_value; 199 unsigned int ecc_value;
200 200
201 /* get the first 2 ECC bytes */ 201 /* get the first 2 ECC bytes */
202 ecc_value = ecc_readl(host->ecc, PR) & AT91_ECC_PARITY; 202 ecc_value = ecc_readl(host->ecc, PR);
203 203
204 ecc_code[eccpos[0]] = ecc_value & 0xFF; 204 ecc_code[eccpos[0]] = ecc_value & 0xFF;
205 ecc_code[eccpos[1]] = (ecc_value >> 8) & 0xFF; 205 ecc_code[eccpos[1]] = (ecc_value >> 8) & 0xFF;