summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2009-08-25 20:54:01 (GMT)
committerWolfgang Denk <wd@denx.de>2009-08-25 20:54:01 (GMT)
commit85f9823cd74bd2d9a7854ca0b2244e43b5214e5a (patch)
treeb80f8ba518cf216d85a52d53ed02eba4328d1c00
parent3d447d135c13e4ddfd8ac3f54506e9d1c9d5bb16 (diff)
parent68e74567cf317318df52dbcb2ac170ffc5e7758a (diff)
downloadu-boot-fsl-qoriq-85f9823cd74bd2d9a7854ca0b2244e43b5214e5a.tar.xz
Merge branch 'master' of git://git.denx.de/u-boot-ppc4xx
-rw-r--r--drivers/mtd/nand/ndfc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/nand/ndfc.c b/drivers/mtd/nand/ndfc.c
index 528b22b..0891936 100644
--- a/drivers/mtd/nand/ndfc.c
+++ b/drivers/mtd/nand/ndfc.c
@@ -89,8 +89,8 @@ static int ndfc_calculate_ecc(struct mtd_info *mtdinfo,
/* The NDFC uses Smart Media (SMC) bytes order
*/
- ecc_code[0] = p[2];
- ecc_code[1] = p[1];
+ ecc_code[0] = p[1];
+ ecc_code[1] = p[2];
ecc_code[2] = p[3];
return 0;