diff options
author | Fugang Duan <b38611@freescale.com> | 2015-12-03 15:43:33 +0800 |
---|---|---|
committer | Nitin Garg <nitin.garg@nxp.com> | 2016-01-14 11:02:41 -0600 |
commit | be1dae951e22628390ab3c9af9c1361bc9c1f00a (patch) | |
tree | bf9e3218ed2f61c5858b256a9289f091e24521b2 /drivers/mtd | |
parent | 70049a4d95e48ad695868ac194dd8e378eb129b2 (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>
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/nand/gpmi-nand/gpmi-nand.c | 2 |
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; } |