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

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Tue Nov 28 19:59:03 EST 2006


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=fc029194999a4563d356cdf728e0c44fb7a49105
Commit:     fc029194999a4563d356cdf728e0c44fb7a49105
Parent:     28bdd4a72d158083b7c7f56ec4ef5dfaf75d9464
commit fc029194999a4563d356cdf728e0c44fb7a49105
Author:     Timo Lindhorst <lindhors at vnet.ibm.com>
AuthorDate: Mon Nov 27 13:35:49 2006 +0100
Commit:     David Woodhouse <dwmw2 at infradead.org>
CommitDate: Wed Nov 29 00:11:39 2006 +0000

    [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: Timo Lindhorst <lindhors at linux.vnet.ibm.com>
    Signed-off-by: David Woodhouse <dwmw2 at infradead.org>
---
 drivers/mtd/nand/nand_ecc.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/mtd/nand/nand_ecc.c b/drivers/mtd/nand/nand_ecc.c
index dd438ca..fde593e 100644
--- 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 *
 	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 *m
 {
 	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];



More information about the linux-mtd-cvs mailing list