aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2016-05-04 16:35:25 +0200
committerTom Rini <trini@konsulko.com>2016-05-05 21:35:38 -0400
commitb955e42bad81a2ddad2f82c1843771de9bdfe6d4 (patch)
treef08d50e2f1780454555ea4698c13bff6dbe698fb /cmd
parent4bf11dc88c246c354ab6060309018a8feb97ec10 (diff)
downloadu-boot-b955e42bad81a2ddad2f82c1843771de9bdfe6d4.zip
u-boot-b955e42bad81a2ddad2f82c1843771de9bdfe6d4.tar.gz
u-boot-b955e42bad81a2ddad2f82c1843771de9bdfe6d4.tar.bz2
mmc: Fix error in RPMB code
Since we do not build any board with CONFIG_SUPPORT_EMMC_RPMB , this piece of code evaded conversion. Fix the following compiler error: cmd/mmc.c: In function 'do_mmcrpmb': cmd/mmc.c:316:32: error: 'struct blk_desc' has no member named 'part_num' original_part = mmc->block_dev.part_num; ^ Signed-off-by: Marek Vasut <marex@denx.de> Cc: Pantelis Antoniou <panto@antoniou-consulting.com> Cc: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/mmc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/mmc.c b/cmd/mmc.c
index 39ef072..c5454bf 100644
--- a/cmd/mmc.c
+++ b/cmd/mmc.c
@@ -313,7 +313,7 @@ static int do_mmcrpmb(cmd_tbl_t *cmdtp, int flag,
return CMD_RET_FAILURE;
}
/* Switch to the RPMB partition */
- original_part = mmc->block_dev.part_num;
+ original_part = mmc->block_dev.hwpart;
if (mmc_select_hwpart(curr_device, MMC_PART_RPMB) != 0)
return CMD_RET_FAILURE;
ret = cp->cmd(cmdtp, flag, argc, argv);