diff options
author | Erico Nunes <nunes.erico@gmail.com> | 2014-03-11 00:31:26 -0400 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2014-03-26 03:33:42 -0400 |
commit | 148256fa0bb8e05a00db3f204b36e19e6312102c (patch) | |
tree | fdd4a7210c70ff9406fd001f1f93beaf3e9d6adb | |
parent | e34fcb07a6d57411de6e15a47724fbe92c5caa42 (diff) |
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@gmail.com>
Acked-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
-rw-r--r-- | drivers/mtd/nand/nand_base.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c index 5826da39216e..01946b7c3a8d 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) | |||
3925 | 3925 | ||
3926 | case NAND_ECC_SOFT_BCH: | 3926 | case NAND_ECC_SOFT_BCH: |
3927 | if (!mtd_nand_has_bch()) { | 3927 | if (!mtd_nand_has_bch()) { |
3928 | pr_warn("CONFIG_MTD_ECC_BCH not enabled\n"); | 3928 | pr_warn("CONFIG_MTD_NAND_ECC_BCH not enabled\n"); |
3929 | BUG(); | 3929 | BUG(); |
3930 | } | 3930 | } |
3931 | ecc->calculate = nand_bch_calculate_ecc; | 3931 | ecc->calculate = nand_bch_calculate_ecc; |