* [U-Boot] [PATCH] mmc: Fix error in RPMB code
@ 2016-05-04 14:35 Marek Vasut
2016-05-06 17:47 ` Tom Rini
0 siblings, 1 reply; 2+ messages in thread
From: Marek Vasut @ 2016-05-04 14:35 UTC (permalink / raw)
To: u-boot
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>
---
cmd/mmc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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);
--
2.7.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [U-Boot] [PATCH] mmc: Fix error in RPMB code
2016-05-04 14:35 [U-Boot] [PATCH] mmc: Fix error in RPMB code Marek Vasut
@ 2016-05-06 17:47 ` Tom Rini
0 siblings, 0 replies; 2+ messages in thread
From: Tom Rini @ 2016-05-06 17:47 UTC (permalink / raw)
To: u-boot
On Wed, May 04, 2016 at 04:35:25PM +0200, Marek Vasut wrote:
> 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>
Applied to u-boot/master, thanks!
--
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>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-05-06 17:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-04 14:35 [U-Boot] [PATCH] mmc: Fix error in RPMB code Marek Vasut
2016-05-06 17:47 ` Tom Rini
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.