]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mtd: nand: fix mention to CONFIG_MTD_NAND_ECC_BCH
authorErico Nunes <nunes.erico@gmail.com>
Tue, 11 Mar 2014 04:31:26 +0000 (01:31 -0300)
committerNitin Garg <nitin.garg@freescale.com>
Fri, 16 Jan 2015 03:16:41 +0000 (21:16 -0600)
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@gmail.com>
Acked-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Huang Shijie <b32955@freescale.com>
drivers/mtd/nand/nand_base.c

index 47f797cde7d8253887e3d215a48d451e9875e75f..2feb1121274479bb03d0f74bae44702cdfaa165c 100644 (file)
@@ -3950,7 +3950,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;