Skip to content
Snippets Groups Projects
Commit 1e2b3ef8 authored by Simon Glass's avatar Simon Glass
Browse files

dm: spl: mmc: Support raw partitions with CONFIG_BLK


Fix up the call in mmc_load_image_raw_partition() to use the correct
function to obtain the MMC device, so that this code can support driver
model.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
parent c9f3c5f9
No related branches found
No related tags found
No related merge requests found
...@@ -155,7 +155,7 @@ static int mmc_load_image_raw_partition(struct mmc *mmc, int partition) ...@@ -155,7 +155,7 @@ static int mmc_load_image_raw_partition(struct mmc *mmc, int partition)
disk_partition_t info; disk_partition_t info;
int err; int err;
err = part_get_info(&mmc->block_dev, partition, &info); err = part_get_info(mmc_get_blk_desc(mmc), partition, &info);
if (err) { if (err) {
#ifdef CONFIG_SPL_LIBCOMMON_SUPPORT #ifdef CONFIG_SPL_LIBCOMMON_SUPPORT
puts("spl: partition error\n"); puts("spl: partition error\n");
......
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