projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
28bdd4a
)
[MTD] [NAND] fix ifdef option in nand_ecc.c
author
Timo Lindhorst
<
[email protected]
>
Mon, 27 Nov 2006 12:35:49 +0000
(13:35 +0100)
committer
David Woodhouse
<
[email protected]
>
Wed, 29 Nov 2006 00:11:39 +0000
(
00:11
+0000)
Fix up the config option in the #ifdef statements in nand_ecc.c
Signed-off-by: Timo Lindhorst <
[email protected]
>
Signed-off-by: David Woodhouse <
[email protected]
>
drivers/mtd/nand/nand_ecc.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/nand/nand_ecc.c
b/drivers/mtd/nand/nand_ecc.c
index dd438ca47d9ab46a1978483ffa0c5ce5b239c04a..fde593e5e634b7ecf564d2f3f04ba5d6c5294636 100644
(file)
--- a/
drivers/mtd/nand/nand_ecc.c
+++ b/
drivers/mtd/nand/nand_ecc.c
@@
-112,7
+112,7
@@
int nand_calculate_ecc(struct mtd_info *mtd, const u_char *dat,
tmp2 |= (reg2 & 0x01) << 0; /* B7 -> B0 */
/* Calculate final ECC code */
-#ifdef CONFIG_NAND_ECC_SMC
+#ifdef CONFIG_
MTD_
NAND_ECC_SMC
ecc_code[0] = ~tmp2;
ecc_code[1] = ~tmp1;
#else
@@
-148,7
+148,7
@@
int nand_correct_data(struct mtd_info *mtd, u_char *dat,
{
uint8_t s0, s1, s2;
-#ifdef CONFIG_NAND_ECC_SMC
+#ifdef CONFIG_
MTD_
NAND_ECC_SMC
s0 = calc_ecc[0] ^ read_ecc[0];
s1 = calc_ecc[1] ^ read_ecc[1];
s2 = calc_ecc[2] ^ read_ecc[2];