mtd: nand: fix mention to CONFIG_MTD_NAND_ECC_BCH

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Sat Apr 5 02:59:06 EDT 2014


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=148256fa0bb8e05a00db3f204b36e19e6312102c
Commit:     148256fa0bb8e05a00db3f204b36e19e6312102c
Parent:     e34fcb07a6d57411de6e15a47724fbe92c5caa42
Author:     Erico Nunes <nunes.erico at gmail.com>
AuthorDate: Tue Mar 11 01:31:26 2014 -0300
Committer:  Brian Norris <computersforpeace at gmail.com>
CommitDate: Wed Mar 26 00:33:42 2014 -0700

    mtd: nand: fix mention to CONFIG_MTD_NAND_ECC_BCH
    
    Mention to CONFIG_MTD_ECC_BCH in the warning message can be confusing as this
    doesn't match the exact name of the configuration option.
    This warning showed up once to me when I was starting to set up BCH. After
    checking my .config file, it took a moment before realizing it is
    CONFIG_MTD_NAND_ECC_BCH instead of CONFIG_MTD_ECC_BCH.
    
    Signed-off-by: Erico Nunes <nunes.erico at gmail.com>
    Acked-by: Lee Jones <lee.jones at linaro.org>
    Signed-off-by: Brian Norris <computersforpeace at gmail.com>
---
 drivers/mtd/nand/nand_base.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c
index 5826da3..01946b7 100644
--- a/drivers/mtd/nand/nand_base.c
+++ b/drivers/mtd/nand/nand_base.c
@@ -3925,7 +3925,7 @@ int nand_scan_tail(struct mtd_info *mtd)
 
 	case NAND_ECC_SOFT_BCH:
 		if (!mtd_nand_has_bch()) {
-			pr_warn("CONFIG_MTD_ECC_BCH not enabled\n");
+			pr_warn("CONFIG_MTD_NAND_ECC_BCH not enabled\n");
 			BUG();
 		}
 		ecc->calculate = nand_bch_calculate_ecc;



More information about the linux-mtd-cvs mailing list