Skip to content

Commit

Permalink
[MTD] [NAND] AT91 hardware ECC compile fix for at91sam9263 / at91sam9260
Browse files Browse the repository at this point in the history
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@gmail.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
  • Loading branch information
Richard Genoud authored and David Woodhouse committed Apr 25, 2008
1 parent 77f5492 commit d43fa14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mtd/nand/at91_nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d43fa14

Please sign in to comment.