Explorar o código

Merge branch 'master' of git://git.denx.de/u-boot-ppc4xx

Wolfgang Denk %!s(int64=15) %!d(string=hai) anos
pai
achega
85f9823cd7
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      drivers/mtd/nand/ndfc.c

+ 2 - 2
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;