Skip to content
Snippets Groups Projects
Commit 4dc80c87 authored by Kever Yang's avatar Kever Yang Committed by Jaehoon Chung
Browse files

mmc: use new hwpart API when CONFIG_BLK enabled


When CONFIG_BLK is enabled, the hwpart id is different with legacy
interface, update it to kame driver work with CONFIG_BLK.

Signed-off-by: default avatarKever Yang <kever.yang@rock-chips.com>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
Signed-off-by: default avatarJaehoon Chung <jh80.chung@samsung.com>
parent 2710d54f
No related branches found
No related tags found
No related merge requests found
...@@ -253,7 +253,11 @@ static int do_mmcrpmb(cmd_tbl_t *cmdtp, int flag, ...@@ -253,7 +253,11 @@ static int do_mmcrpmb(cmd_tbl_t *cmdtp, int flag,
return CMD_RET_FAILURE; return CMD_RET_FAILURE;
} }
/* Switch to the RPMB partition */ /* Switch to the RPMB partition */
#ifndef CONFIG_BLK
original_part = mmc->block_dev.hwpart; original_part = mmc->block_dev.hwpart;
#else
original_part = mmc_get_blk_desc(mmc)->hwpart;
#endif
if (blk_select_hwpart_devnum(IF_TYPE_MMC, curr_device, MMC_PART_RPMB) != if (blk_select_hwpart_devnum(IF_TYPE_MMC, curr_device, MMC_PART_RPMB) !=
0) 0)
return CMD_RET_FAILURE; return CMD_RET_FAILURE;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment