diff options
Diffstat (limited to 'drivers/mtd/tests/mtd_speedtest.c')
-rw-r--r-- | drivers/mtd/tests/mtd_speedtest.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/mtd/tests/mtd_speedtest.c b/drivers/mtd/tests/mtd_speedtest.c index f67a65e21043..3c9529bd0a62 100644 --- a/drivers/mtd/tests/mtd_speedtest.c +++ b/drivers/mtd/tests/mtd_speedtest.c | |||
@@ -214,7 +214,7 @@ static int read_eraseblock(int ebnum) | |||
214 | int err = 0; | 214 | int err = 0; |
215 | loff_t addr = ebnum * mtd->erasesize; | 215 | loff_t addr = ebnum * mtd->erasesize; |
216 | 216 | ||
217 | err = mtd->read(mtd, addr, mtd->erasesize, &read, iobuf); | 217 | err = mtd_read(mtd, addr, mtd->erasesize, &read, iobuf); |
218 | /* Ignore corrected ECC errors */ | 218 | /* Ignore corrected ECC errors */ |
219 | if (mtd_is_bitflip(err)) | 219 | if (mtd_is_bitflip(err)) |
220 | err = 0; | 220 | err = 0; |
@@ -235,7 +235,7 @@ static int read_eraseblock_by_page(int ebnum) | |||
235 | void *buf = iobuf; | 235 | void *buf = iobuf; |
236 | 236 | ||
237 | for (i = 0; i < pgcnt; i++) { | 237 | for (i = 0; i < pgcnt; i++) { |
238 | err = mtd->read(mtd, addr, pgsize, &read, buf); | 238 | err = mtd_read(mtd, addr, pgsize, &read, buf); |
239 | /* Ignore corrected ECC errors */ | 239 | /* Ignore corrected ECC errors */ |
240 | if (mtd_is_bitflip(err)) | 240 | if (mtd_is_bitflip(err)) |
241 | err = 0; | 241 | err = 0; |
@@ -261,7 +261,7 @@ static int read_eraseblock_by_2pages(int ebnum) | |||
261 | void *buf = iobuf; | 261 | void *buf = iobuf; |
262 | 262 | ||
263 | for (i = 0; i < n; i++) { | 263 | for (i = 0; i < n; i++) { |
264 | err = mtd->read(mtd, addr, sz, &read, buf); | 264 | err = mtd_read(mtd, addr, sz, &read, buf); |
265 | /* Ignore corrected ECC errors */ | 265 | /* Ignore corrected ECC errors */ |
266 | if (mtd_is_bitflip(err)) | 266 | if (mtd_is_bitflip(err)) |
267 | err = 0; | 267 | err = 0; |
@@ -276,7 +276,7 @@ static int read_eraseblock_by_2pages(int ebnum) | |||
276 | buf += sz; | 276 | buf += sz; |
277 | } | 277 | } |
278 | if (pgcnt % 2) { | 278 | if (pgcnt % 2) { |
279 | err = mtd->read(mtd, addr, pgsize, &read, buf); | 279 | err = mtd_read(mtd, addr, pgsize, &read, buf); |
280 | /* Ignore corrected ECC errors */ | 280 | /* Ignore corrected ECC errors */ |
281 | if (mtd_is_bitflip(err)) | 281 | if (mtd_is_bitflip(err)) |
282 | err = 0; | 282 | err = 0; |