diff options
author | Xu Ziyuan <xzy.xu@rock-chips.com> | 2016-06-15 16:56:18 +0800 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2016-07-11 14:06:44 -0600 |
commit | ec3cde1e832067352532013988f4590c2f2f6c4f (patch) | |
tree | 8f16b1dc3a57e48e2d703ab26c6c89c52949ab2b | |
parent | 4b689f02ffa0aebdfef204b5c5c17134e97459c3 (diff) | |
download | u-boot-imx-ec3cde1e832067352532013988f4590c2f2f6c4f.zip u-boot-imx-ec3cde1e832067352532013988f4590c2f2f6c4f.tar.gz u-boot-imx-ec3cde1e832067352532013988f4590c2f2f6c4f.tar.bz2 |
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: Ziyuan Xu <xzy.xu@rock-chips.com>
Acked-by: Simon Glass <sjg@chromium.org>
-rw-r--r-- | common/fb_mmc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/fb_mmc.c b/common/fb_mmc.c index c739651..8d0524d 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"); |