Skip to contentSkip to conversation

mmc: Fix error in RPMB code

PATCH New Marek Vasut 2 participants 2 messages May 4, 2016 – May 6, 2016

lore
Share & tools
lore
#0 lore raw

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;
                                ^
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
index 39ef072..c5454bf 100644
@@ -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
#1 lore raw

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: 'struct blk_desc' has no member named 'part_num'

  original_part = mmc->block_dev.part_num;
                                ^
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>