summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFugang Duan <b38611@freescale.com>2015-12-03 15:43:33 +0800
committerNitin Garg <nitin.garg@nxp.com>2016-01-14 11:02:41 -0600
commitbe1dae951e22628390ab3c9af9c1361bc9c1f00a (patch)
treebf9e3218ed2f61c5858b256a9289f091e24521b2
parent70049a4d95e48ad695868ac194dd8e378eb129b2 (diff)
MLK-11949 mtd: gpmi: fix the typo in .bbm_in_data_chunk()
Fix the typo in when check bch geometry ecc chunk0 and chunkn size. Signed-off-by: Fugang Duan <B38611@freescale.com>
-rw-r--r--drivers/mtd/nand/gpmi-nand/gpmi-nand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/gpmi-nand/gpmi-nand.c b/drivers/mtd/nand/gpmi-nand/gpmi-nand.c
index 04cfe64edce5..7d2a5df7235b 100644
--- a/drivers/mtd/nand/gpmi-nand/gpmi-nand.c
+++ b/drivers/mtd/nand/gpmi-nand/gpmi-nand.c
@@ -159,7 +159,7 @@ static inline bool bbm_in_data_chunk(struct gpmi_nand_data *this,
struct mtd_info *mtd = &this->mtd;
unsigned int i, j;
- if (geo->ecc_chunk0_size != geo->ecc_chunk0_size) {
+ if (geo->ecc_chunk0_size != geo->ecc_chunkn_size) {
dev_err(this->dev, "The size of chunk0 must equal to chunkn\n");
return false;
}