diff options
Diffstat (limited to 'drivers/mtd/mtdswap.c')
-rw-r--r-- | drivers/mtd/mtdswap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/mtdswap.c b/drivers/mtd/mtdswap.c index 6ff823e29c0c..0f0ab18d4405 100644 --- a/drivers/mtd/mtdswap.c +++ b/drivers/mtd/mtdswap.c | |||
@@ -312,7 +312,7 @@ static int mtdswap_handle_write_error(struct mtdswap_dev *d, struct swap_eb *eb) | |||
312 | static int mtdswap_read_oob(struct mtdswap_dev *d, loff_t from, | 312 | static int mtdswap_read_oob(struct mtdswap_dev *d, loff_t from, |
313 | struct mtd_oob_ops *ops) | 313 | struct mtd_oob_ops *ops) |
314 | { | 314 | { |
315 | int ret = d->mtd->read_oob(d->mtd, from, ops); | 315 | int ret = mtd_read_oob(d->mtd, from, ops); |
316 | 316 | ||
317 | if (mtd_is_bitflip(ret)) | 317 | if (mtd_is_bitflip(ret)) |
318 | return ret; | 318 | return ret; |
@@ -955,7 +955,7 @@ static unsigned int mtdswap_eblk_passes(struct mtdswap_dev *d, | |||
955 | 955 | ||
956 | pos = base; | 956 | pos = base; |
957 | for (i = 0; i < mtd_pages; i++) { | 957 | for (i = 0; i < mtd_pages; i++) { |
958 | ret = mtd->read_oob(mtd, pos, &ops); | 958 | ret = mtd_read_oob(mtd, pos, &ops); |
959 | if (ret) | 959 | if (ret) |
960 | goto error; | 960 | goto error; |
961 | 961 | ||