aboutsummaryrefslogtreecommitdiffstats
path: root/arch/cris
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 /arch/cris
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 'arch/cris')
-rw-r--r--arch/cris/arch-v32/drivers/axisflashmap.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/cris/arch-v32/drivers/axisflashmap.c b/arch/cris/arch-v32/drivers/axisflashmap.c
index 011bddbf073f..b34438e026be 100644
--- a/arch/cris/arch-v32/drivers/axisflashmap.c
+++ b/arch/cris/arch-v32/drivers/axisflashmap.c
@@ -404,8 +404,7 @@ static int __init init_axis_flash(void)
404 */ 404 */
405 int blockstat; 405 int blockstat;
406 do { 406 do {
407 blockstat = main_mtd->block_isbad(main_mtd, 407 blockstat = mtd_block_isbad(main_mtd, ptable_sector);
408 ptable_sector);
409 if (blockstat < 0) 408 if (blockstat < 0)
410 ptable_sector = 0; /* read error */ 409 ptable_sector = 0; /* read error */
411 else if (blockstat) 410 else if (blockstat)