aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/mtdswap.c
diff options
context:
space:
mode:
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2011-12-23 11:27:05 -0500
committerDavid Woodhouse <David.Woodhouse@intel.com>2012-01-09 13:25:23 -0500
commitfd2819bbc92fc98bed5d612e4acbe16b6326f6bf (patch)
tree114f2a130cb854c74707eb805854fe048f65ac14 /drivers/mtd/mtdswap.c
parent7ae79d7ff1769a3e9c47076b46e4eaa11204a2ee (diff)
mtd: introduce mtd_read_oob interface
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd/mtdswap.c')
-rw-r--r--drivers/mtd/mtdswap.c4
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)
312static int mtdswap_read_oob(struct mtdswap_dev *d, loff_t from, 312static 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