diff options
| author | Marek Vasut <[email protected]> | 2016-05-04 16:35:25 +0200 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2016-05-05 21:35:38 -0400 |
| commit | b955e42bad81a2ddad2f82c1843771de9bdfe6d4 (patch) | |
| tree | f08d50e2f1780454555ea4698c13bff6dbe698fb /cmd | |
| parent | 4bf11dc88c246c354ab6060309018a8feb97ec10 (diff) | |
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]>
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/mmc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/mmc.c b/cmd/mmc.c index 39ef072fc2f..c5454bf2e13 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); |
