aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/tests/mtd_torturetest.c
diff options
context:
space:
mode:
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2011-12-23 12:35:30 -0500
committerDavid Woodhouse <David.Woodhouse@intel.com>2012-01-09 13:25:47 -0500
commit7086c19d07429d697057587caf1e5e0345442d16 (patch)
tree3a892182dba0847de32ef79b1fe1d46d8b1b5de8 /drivers/mtd/tests/mtd_torturetest.c
parentead995f8d4da1e2f1ef40b0e5f4133fee38a3d3d (diff)
mtd: introduce mtd_block_isbad 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/tests/mtd_torturetest.c')
-rw-r--r--drivers/mtd/tests/mtd_torturetest.c3
1 files changed, 1 insertions, 2 deletions
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 "