aboutsummaryrefslogtreecommitdiffstats
path: root/arch/cris
diff options
context:
space:
mode:
Diffstat (limited to 'arch/cris')
-rw-r--r--arch/cris/arch-v32/drivers/axisflashmap.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/arch/cris/arch-v32/drivers/axisflashmap.c b/arch/cris/arch-v32/drivers/axisflashmap.c
index a2bde3744622..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)
@@ -413,8 +412,8 @@ static int __init init_axis_flash(void)
413 } while (blockstat && ptable_sector); 412 } while (blockstat && ptable_sector);
414#endif 413#endif
415 if (ptable_sector) { 414 if (ptable_sector) {
416 main_mtd->read(main_mtd, ptable_sector, PAGESIZE, 415 mtd_read(main_mtd, ptable_sector, PAGESIZE, &len,
417 &len, page); 416 page);
418 ptable_head = &((struct partitiontable *) page)->head; 417 ptable_head = &((struct partitiontable *) page)->head;
419 } 418 }
420 419