summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/fb_mmc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/fb_mmc.c b/common/fb_mmc.c
index c739651009b..8d0524da78f 100644
--- a/common/fb_mmc.c
+++ b/common/fb_mmc.c
@@ -191,7 +191,7 @@ void fb_mmc_erase(const char *cmd)
printf("Erasing blocks " LBAFU " to " LBAFU " due to alignment\n",
blks_start, blks_start + blks_size);
- blks = dev_desc->block_erase(dev_desc, blks_start, blks_size);
+ blks = blk_derase(dev_desc, blks_start, blks_size);
if (blks != blks_size) {
error("failed erasing from device %d", dev_desc->devnum);
fastboot_fail("failed erasing from device");