diff options
-rw-r--r-- | drivers/mtd/nand/sh_flctl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mtd/nand/sh_flctl.c b/drivers/mtd/nand/sh_flctl.c index 1343315b37ba..4ff8ef526c02 100644 --- a/drivers/mtd/nand/sh_flctl.c +++ b/drivers/mtd/nand/sh_flctl.c | |||
@@ -396,7 +396,8 @@ static int flctl_read_page_hwecc(struct mtd_info *mtd, struct nand_chip *chip, | |||
396 | uint8_t *buf, int oob_required, int page) | 396 | uint8_t *buf, int oob_required, int page) |
397 | { | 397 | { |
398 | chip->read_buf(mtd, buf, mtd->writesize); | 398 | chip->read_buf(mtd, buf, mtd->writesize); |
399 | chip->read_buf(mtd, chip->oob_poi, mtd->oobsize); | 399 | if (oob_required) |
400 | chip->read_buf(mtd, chip->oob_poi, mtd->oobsize); | ||
400 | return 0; | 401 | return 0; |
401 | } | 402 | } |
402 | 403 | ||