aboutsummaryrefslogtreecommitdiffstats
path: root/fs/jffs2/erase.c
diff options
context:
space:
mode:
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2011-12-23 10:05:52 -0500
committerDavid Woodhouse <David.Woodhouse@intel.com>2012-01-09 13:25:17 -0500
commit7219778ad9c18cc2c05c7fca0abe026afbc19dfb (patch)
tree509a11bf7f7ebeef9a4236901adf53e507d1455b /fs/jffs2/erase.c
parentd35ea200c0fb5315f16fb2599a4bafd9c1a7b386 (diff)
mtd: introduce mtd_unpoint interface
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'fs/jffs2/erase.c')
-rw-r--r--fs/jffs2/erase.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/jffs2/erase.c b/fs/jffs2/erase.c
index 53f8794fda6a..ffdf4fca9c54 100644
--- a/fs/jffs2/erase.c
+++ b/fs/jffs2/erase.c
@@ -349,7 +349,7 @@ static int jffs2_block_check_erase(struct jffs2_sb_info *c, struct jffs2_erasebl
349 if (retlen < c->sector_size) { 349 if (retlen < c->sector_size) {
350 /* Don't muck about if it won't let us point to the whole erase sector */ 350 /* Don't muck about if it won't let us point to the whole erase sector */
351 D1(printk(KERN_DEBUG "MTD point returned len too short: 0x%zx\n", retlen)); 351 D1(printk(KERN_DEBUG "MTD point returned len too short: 0x%zx\n", retlen));
352 c->mtd->unpoint(c->mtd, jeb->offset, retlen); 352 mtd_unpoint(c->mtd, jeb->offset, retlen);
353 goto do_flash_read; 353 goto do_flash_read;
354 } 354 }
355 wordebuf = ebuf-sizeof(*wordebuf); 355 wordebuf = ebuf-sizeof(*wordebuf);
@@ -358,7 +358,7 @@ static int jffs2_block_check_erase(struct jffs2_sb_info *c, struct jffs2_erasebl
358 if (*++wordebuf != ~0) 358 if (*++wordebuf != ~0)
359 break; 359 break;
360 } while(--retlen); 360 } while(--retlen);
361 c->mtd->unpoint(c->mtd, jeb->offset, c->sector_size); 361 mtd_unpoint(c->mtd, jeb->offset, c->sector_size);
362 if (retlen) { 362 if (retlen) {
363 printk(KERN_WARNING "Newly-erased block contained word 0x%lx at offset 0x%08tx\n", 363 printk(KERN_WARNING "Newly-erased block contained word 0x%lx at offset 0x%08tx\n",
364 *wordebuf, jeb->offset + c->sector_size-retlen*sizeof(*wordebuf)); 364 *wordebuf, jeb->offset + c->sector_size-retlen*sizeof(*wordebuf));