mmc: Fix error in RPMB code
PATCH 1/1 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 <[email protected]>
Cc Pantelis Antoniou <[email protected]>
Cc Tom Rini <[email protected]>
--- cmd/mmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
cmd/mmc.c +1 -1
@@ -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);
Signature · 1 line
2.7.0
PATCH 1/1 mmc: Fix error in RPMB code
Quoted 11 lines · Marek Vasut
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: 'structblk_desc' has no member named 'part_num'original_part = mmc->block_dev.part_num; ^Signed-off-by Marek Vasut <[email protected]>Cc Pantelis Antoniou <[email protected]>Cc Tom Rini <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160506/1a372ad6/attachment.sig>