diff options
Diffstat (limited to 'drivers/mtd/tests')
-rw-r--r-- | drivers/mtd/tests/mtd_oobtest.c | 2 | ||||
-rw-r--r-- | drivers/mtd/tests/mtd_pagetest.c | 2 | ||||
-rw-r--r-- | drivers/mtd/tests/mtd_readtest.c | 2 | ||||
-rw-r--r-- | drivers/mtd/tests/mtd_speedtest.c | 2 | ||||
-rw-r--r-- | drivers/mtd/tests/mtd_stresstest.c | 2 | ||||
-rw-r--r-- | drivers/mtd/tests/mtd_subpagetest.c | 2 | ||||
-rw-r--r-- | drivers/mtd/tests/mtd_torturetest.c | 3 |
7 files changed, 7 insertions, 8 deletions
diff --git a/drivers/mtd/tests/mtd_oobtest.c b/drivers/mtd/tests/mtd_oobtest.c index 81113885e086..ed9b62827f1b 100644 --- a/drivers/mtd/tests/mtd_oobtest.c +++ b/drivers/mtd/tests/mtd_oobtest.c | |||
@@ -329,7 +329,7 @@ static int is_block_bad(int ebnum) | |||
329 | int ret; | 329 | int ret; |
330 | loff_t addr = ebnum * mtd->erasesize; | 330 | loff_t addr = ebnum * mtd->erasesize; |
331 | 331 | ||
332 | ret = mtd->block_isbad(mtd, addr); | 332 | ret = mtd_block_isbad(mtd, addr); |
333 | if (ret) | 333 | if (ret) |
334 | printk(PRINT_PREF "block %d is bad\n", ebnum); | 334 | printk(PRINT_PREF "block %d is bad\n", ebnum); |
335 | return ret; | 335 | return ret; |
diff --git a/drivers/mtd/tests/mtd_pagetest.c b/drivers/mtd/tests/mtd_pagetest.c index 83da97e54f97..8024eaf4c1ac 100644 --- a/drivers/mtd/tests/mtd_pagetest.c +++ b/drivers/mtd/tests/mtd_pagetest.c | |||
@@ -469,7 +469,7 @@ static int is_block_bad(int ebnum) | |||
469 | loff_t addr = ebnum * mtd->erasesize; | 469 | loff_t addr = ebnum * mtd->erasesize; |
470 | int ret; | 470 | int ret; |
471 | 471 | ||
472 | ret = mtd->block_isbad(mtd, addr); | 472 | ret = mtd_block_isbad(mtd, addr); |
473 | if (ret) | 473 | if (ret) |
474 | printk(PRINT_PREF "block %d is bad\n", ebnum); | 474 | printk(PRINT_PREF "block %d is bad\n", ebnum); |
475 | return ret; | 475 | return ret; |
diff --git a/drivers/mtd/tests/mtd_readtest.c b/drivers/mtd/tests/mtd_readtest.c index 5eaeada84284..ad5fd0df86ee 100644 --- a/drivers/mtd/tests/mtd_readtest.c +++ b/drivers/mtd/tests/mtd_readtest.c | |||
@@ -132,7 +132,7 @@ static int is_block_bad(int ebnum) | |||
132 | loff_t addr = ebnum * mtd->erasesize; | 132 | loff_t addr = ebnum * mtd->erasesize; |
133 | int ret; | 133 | int ret; |
134 | 134 | ||
135 | ret = mtd->block_isbad(mtd, addr); | 135 | ret = mtd_block_isbad(mtd, addr); |
136 | if (ret) | 136 | if (ret) |
137 | printk(PRINT_PREF "block %d is bad\n", ebnum); | 137 | printk(PRINT_PREF "block %d is bad\n", ebnum); |
138 | return ret; | 138 | return ret; |
diff --git a/drivers/mtd/tests/mtd_speedtest.c b/drivers/mtd/tests/mtd_speedtest.c index c7b18e189082..ecb287847505 100644 --- a/drivers/mtd/tests/mtd_speedtest.c +++ b/drivers/mtd/tests/mtd_speedtest.c | |||
@@ -296,7 +296,7 @@ static int is_block_bad(int ebnum) | |||
296 | loff_t addr = ebnum * mtd->erasesize; | 296 | loff_t addr = ebnum * mtd->erasesize; |
297 | int ret; | 297 | int ret; |
298 | 298 | ||
299 | ret = mtd->block_isbad(mtd, addr); | 299 | ret = mtd_block_isbad(mtd, addr); |
300 | if (ret) | 300 | if (ret) |
301 | printk(PRINT_PREF "block %d is bad\n", ebnum); | 301 | printk(PRINT_PREF "block %d is bad\n", ebnum); |
302 | return ret; | 302 | return ret; |
diff --git a/drivers/mtd/tests/mtd_stresstest.c b/drivers/mtd/tests/mtd_stresstest.c index f8aac4b7e59a..4789c0ee3e9a 100644 --- a/drivers/mtd/tests/mtd_stresstest.c +++ b/drivers/mtd/tests/mtd_stresstest.c | |||
@@ -132,7 +132,7 @@ static int is_block_bad(int ebnum) | |||
132 | loff_t addr = ebnum * mtd->erasesize; | 132 | loff_t addr = ebnum * mtd->erasesize; |
133 | int ret; | 133 | int ret; |
134 | 134 | ||
135 | ret = mtd->block_isbad(mtd, addr); | 135 | ret = mtd_block_isbad(mtd, addr); |
136 | if (ret) | 136 | if (ret) |
137 | printk(PRINT_PREF "block %d is bad\n", ebnum); | 137 | printk(PRINT_PREF "block %d is bad\n", ebnum); |
138 | return ret; | 138 | return ret; |
diff --git a/drivers/mtd/tests/mtd_subpagetest.c b/drivers/mtd/tests/mtd_subpagetest.c index b90c01036b49..4b873d49fe6a 100644 --- a/drivers/mtd/tests/mtd_subpagetest.c +++ b/drivers/mtd/tests/mtd_subpagetest.c | |||
@@ -344,7 +344,7 @@ static int is_block_bad(int ebnum) | |||
344 | loff_t addr = ebnum * mtd->erasesize; | 344 | loff_t addr = ebnum * mtd->erasesize; |
345 | int ret; | 345 | int ret; |
346 | 346 | ||
347 | ret = mtd->block_isbad(mtd, addr); | 347 | ret = mtd_block_isbad(mtd, addr); |
348 | if (ret) | 348 | if (ret) |
349 | printk(PRINT_PREF "block %d is bad\n", ebnum); | 349 | printk(PRINT_PREF "block %d is bad\n", ebnum); |
350 | return ret; | 350 | return ret; |
diff --git a/drivers/mtd/tests/mtd_torturetest.c b/drivers/mtd/tests/mtd_torturetest.c index dd34a519fa7a..30c4ed9855ec 100644 --- a/drivers/mtd/tests/mtd_torturetest.c +++ b/drivers/mtd/tests/mtd_torturetest.c | |||
@@ -292,8 +292,7 @@ static int __init tort_init(void) | |||
292 | memset(&bad_ebs[0], 0, sizeof(int) * ebcnt); | 292 | memset(&bad_ebs[0], 0, sizeof(int) * ebcnt); |
293 | if (mtd->block_isbad) { | 293 | if (mtd->block_isbad) { |
294 | for (i = eb; i < eb + ebcnt; i++) { | 294 | for (i = eb; i < eb + ebcnt; i++) { |
295 | err = mtd->block_isbad(mtd, | 295 | err = mtd_block_isbad(mtd, (loff_t)i * mtd->erasesize); |
296 | (loff_t)i * mtd->erasesize); | ||
297 | 296 | ||
298 | if (err < 0) { | 297 | if (err < 0) { |
299 | printk(PRINT_PREF "block_isbad() returned %d " | 298 | printk(PRINT_PREF "block_isbad() returned %d " |