diff options
author | Wolfgang Denk <wd@denx.de> | 2009-08-25 22:54:01 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2009-08-25 22:54:01 +0200 |
commit | 85f9823cd74bd2d9a7854ca0b2244e43b5214e5a (patch) | |
tree | b80f8ba518cf216d85a52d53ed02eba4328d1c00 /drivers | |
parent | 3d447d135c13e4ddfd8ac3f54506e9d1c9d5bb16 (diff) | |
parent | 68e74567cf317318df52dbcb2ac170ffc5e7758a (diff) | |
download | u-boot-imx-85f9823cd74bd2d9a7854ca0b2244e43b5214e5a.zip u-boot-imx-85f9823cd74bd2d9a7854ca0b2244e43b5214e5a.tar.gz u-boot-imx-85f9823cd74bd2d9a7854ca0b2244e43b5214e5a.tar.bz2 |
Merge branch 'master' of git://git.denx.de/u-boot-ppc4xx
Diffstat (limited to 'drivers')
-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; |