diff options
-rw-r--r-- | drivers/mtd/nand/ndfc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/nand/ndfc.c b/drivers/mtd/nand/ndfc.c index 89bf85af642c..40b5658bdbe6 100644 --- a/drivers/mtd/nand/ndfc.c +++ b/drivers/mtd/nand/ndfc.c | |||
@@ -102,8 +102,8 @@ static int ndfc_calculate_ecc(struct mtd_info *mtd, | |||
102 | wmb(); | 102 | wmb(); |
103 | ecc = in_be32(ndfc->ndfcbase + NDFC_ECC); | 103 | ecc = in_be32(ndfc->ndfcbase + NDFC_ECC); |
104 | /* The NDFC uses Smart Media (SMC) bytes order */ | 104 | /* The NDFC uses Smart Media (SMC) bytes order */ |
105 | ecc_code[0] = p[2]; | 105 | ecc_code[0] = p[1]; |
106 | ecc_code[1] = p[1]; | 106 | ecc_code[1] = p[2]; |
107 | ecc_code[2] = p[3]; | 107 | ecc_code[2] = p[3]; |
108 | 108 | ||
109 | return 0; | 109 | return 0; |