[U-Boot] [PATCH] common: block: fix error with CONFIG_FASTBOOT_FLASH_MMC_DEV

Ziyuan Xu xzy.xu at rock-chips.com
Wed Jun 15 10:42:21 CEST 2016


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 at rock-chips.com>
---

 common/fb_mmc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/fb_mmc.c b/common/fb_mmc.c
index e3abcc8..26025dc 100644
--- a/common/fb_mmc.c
+++ b/common/fb_mmc.c
@@ -206,7 +206,7 @@ void fb_mmc_erase(const char *cmd, char *response)
 	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(response_str, "failed erasing from device");
-- 
1.9.1




More information about the U-Boot mailing list