diff options
author | Wolfgang Denk <wd@denx.de> | 2009-08-25 22:57:10 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2009-08-25 22:57:10 +0200 |
commit | 68ccfa482be0c7e4aa18285aceb214ed7f5d8e89 (patch) | |
tree | 9c40b6367afd28d90e9952af5d986912a5368b24 /drivers/mtd | |
parent | 307ecb6db04eebdc06b8c87d48bf48d3cbd5e9d7 (diff) | |
parent | 85f9823cd74bd2d9a7854ca0b2244e43b5214e5a (diff) | |
download | u-boot-imx-68ccfa482be0c7e4aa18285aceb214ed7f5d8e89.zip u-boot-imx-68ccfa482be0c7e4aa18285aceb214ed7f5d8e89.tar.gz u-boot-imx-68ccfa482be0c7e4aa18285aceb214ed7f5d8e89.tar.bz2 |
Merge branch 'master' into next
Diffstat (limited to 'drivers/mtd')
-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 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; |