提交 fc029194 编写于 作者: T Timo Lindhorst 提交者: David Woodhouse

[MTD] [NAND] fix ifdef option in nand_ecc.c

Fix up the config option in the #ifdef statements in nand_ecc.c
Signed-off-by: NTimo Lindhorst <lindhors@linux.vnet.ibm.com>
Signed-off-by: NDavid Woodhouse <dwmw2@infradead.org>
上级 28bdd4a7
...@@ -112,7 +112,7 @@ int nand_calculate_ecc(struct mtd_info *mtd, const u_char *dat, ...@@ -112,7 +112,7 @@ int nand_calculate_ecc(struct mtd_info *mtd, const u_char *dat,
tmp2 |= (reg2 & 0x01) << 0; /* B7 -> B0 */ tmp2 |= (reg2 & 0x01) << 0; /* B7 -> B0 */
/* Calculate final ECC code */ /* Calculate final ECC code */
#ifdef CONFIG_NAND_ECC_SMC #ifdef CONFIG_MTD_NAND_ECC_SMC
ecc_code[0] = ~tmp2; ecc_code[0] = ~tmp2;
ecc_code[1] = ~tmp1; ecc_code[1] = ~tmp1;
#else #else
...@@ -148,7 +148,7 @@ int nand_correct_data(struct mtd_info *mtd, u_char *dat, ...@@ -148,7 +148,7 @@ int nand_correct_data(struct mtd_info *mtd, u_char *dat,
{ {
uint8_t s0, s1, s2; uint8_t s0, s1, s2;
#ifdef CONFIG_NAND_ECC_SMC #ifdef CONFIG_MTD_NAND_ECC_SMC
s0 = calc_ecc[0] ^ read_ecc[0]; s0 = calc_ecc[0] ^ read_ecc[0];
s1 = calc_ecc[1] ^ read_ecc[1]; s1 = calc_ecc[1] ^ read_ecc[1];
s2 = calc_ecc[2] ^ read_ecc[2]; s2 = calc_ecc[2] ^ read_ecc[2];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册