]> git.sur5r.net Git - u-boot/commitdiff
common: block: fix compiler error with CONFIG_FASTBOOT_FLASH_MMC_DEV
authorXu Ziyuan <xzy.xu@rock-chips.com>
Wed, 15 Jun 2016 08:56:18 +0000 (16:56 +0800)
committerSimon Glass <sjg@chromium.org>
Mon, 11 Jul 2016 20:06:44 +0000 (14:06 -0600)
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: Ziyuan Xu <xzy.xu@rock-chips.com>
Acked-by: Simon Glass <sjg@chromium.org>
common/fb_mmc.c

index c739651009b0f806b68bcc998f96d7fa3bd6a757..8d0524da78f39c5b829bc71813c7549007482ccb 100644 (file)
@@ -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");