Skip to content
Snippets Groups Projects
Commit ec3cde1e authored by Xu Ziyuan's avatar Xu Ziyuan Committed by Simon Glass
Browse files

common: block: fix compiler error with CONFIG_FASTBOOT_FLASH_MMC_DEV


This fixes the following compiler error:

common/fb_mmc.c: In function ‘fb_mmc_erase’:
common/fb_mmc.c:209:17: error: ‘struct blk_desc’ has no member named
‘block_erase’

Signed-off-by: default avatarZiyuan Xu <xzy.xu@rock-chips.com>
Acked-by: default avatarSimon Glass <sjg@chromium.org>
parent 4b689f02
No related branches found
No related tags found
No related merge requests found
......@@ -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");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment