diff options
Diffstat (limited to 'drivers/mtd/nand/nand_bbt.c')
-rw-r--r-- | drivers/mtd/nand/nand_bbt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/mtd/nand/nand_bbt.c b/drivers/mtd/nand/nand_bbt.c index 1bcd6bc6798c..fcab50e80b90 100644 --- a/drivers/mtd/nand/nand_bbt.c +++ b/drivers/mtd/nand/nand_bbt.c | |||
@@ -317,7 +317,7 @@ static int scan_read_raw_oob(struct mtd_info *mtd, uint8_t *buf, loff_t offs, | |||
317 | ops.len = min(len, (size_t)mtd->writesize); | 317 | ops.len = min(len, (size_t)mtd->writesize); |
318 | ops.oobbuf = buf + ops.len; | 318 | ops.oobbuf = buf + ops.len; |
319 | 319 | ||
320 | res = mtd->read_oob(mtd, offs, &ops); | 320 | res = mtd_read_oob(mtd, offs, &ops); |
321 | 321 | ||
322 | if (res) | 322 | if (res) |
323 | return res; | 323 | return res; |
@@ -434,7 +434,7 @@ static int scan_block_fast(struct mtd_info *mtd, struct nand_bbt_descr *bd, | |||
434 | * Read the full oob until read_oob is fixed to handle single | 434 | * Read the full oob until read_oob is fixed to handle single |
435 | * byte reads for 16 bit buswidth. | 435 | * byte reads for 16 bit buswidth. |
436 | */ | 436 | */ |
437 | ret = mtd->read_oob(mtd, offs, &ops); | 437 | ret = mtd_read_oob(mtd, offs, &ops); |
438 | /* Ignore ECC errors when checking for BBM */ | 438 | /* Ignore ECC errors when checking for BBM */ |
439 | if (ret && !mtd_is_bitflip_or_eccerr(ret)) | 439 | if (ret && !mtd_is_bitflip_or_eccerr(ret)) |
440 | return ret; | 440 | return ret; |
@@ -769,7 +769,7 @@ static int write_bbt(struct mtd_info *mtd, uint8_t *buf, | |||
769 | /* Read oob data */ | 769 | /* Read oob data */ |
770 | ops.ooblen = (len >> this->page_shift) * mtd->oobsize; | 770 | ops.ooblen = (len >> this->page_shift) * mtd->oobsize; |
771 | ops.oobbuf = &buf[len]; | 771 | ops.oobbuf = &buf[len]; |
772 | res = mtd->read_oob(mtd, to + mtd->writesize, &ops); | 772 | res = mtd_read_oob(mtd, to + mtd->writesize, &ops); |
773 | if (res < 0 || ops.oobretlen != ops.ooblen) | 773 | if (res < 0 || ops.oobretlen != ops.ooblen) |
774 | goto outerr; | 774 | goto outerr; |
775 | 775 | ||