From: Marek Vasut Date: Wed, 4 May 2016 14:35:25 +0000 (+0200) Subject: mmc: Fix error in RPMB code X-Git-Tag: v2016.05~14 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b955e42bad81a2ddad2f82c1843771de9bdfe6d4;p=u-boot 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 Cc: Pantelis Antoniou Cc: Tom Rini --- diff --git a/cmd/mmc.c b/cmd/mmc.c index 39ef072fc2..c5454bf2e1 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);