Commit b955e42bad81a2ddad2f82c1843771de9bdfe6d4

Authored by Marek Vasut
Committed by Tom Rini
1 parent 4bf11dc88c

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 <marex@denx.de>
Cc: Pantelis Antoniou <panto@antoniou-consulting.com>
Cc: Tom Rini <trini@konsulko.com>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -313,7 +313,7 @@
313 313 return CMD_RET_FAILURE;
314 314 }
315 315 /* Switch to the RPMB partition */
316   - original_part = mmc->block_dev.part_num;
  316 + original_part = mmc->block_dev.hwpart;
317 317 if (mmc_select_hwpart(curr_device, MMC_PART_RPMB) != 0)
318 318 return CMD_RET_FAILURE;
319 319 ret = cp->cmd(cmdtp, flag, argc, argv);