diff options
author | Simon Glass <sjg@chromium.org> | 2016-07-05 17:10:18 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2016-07-27 14:15:54 -0600 |
commit | 1e2b3ef8653417f296ee23f32c28abfc086529dd (patch) | |
tree | cd47fb2bd26d4fbd3c6fdc8561de7c39b80aabe1 /common/spl | |
parent | c9f3c5f9c36127c4221bec7d790d44503d4da5a3 (diff) | |
download | u-boot-imx-1e2b3ef8653417f296ee23f32c28abfc086529dd.zip u-boot-imx-1e2b3ef8653417f296ee23f32c28abfc086529dd.tar.gz u-boot-imx-1e2b3ef8653417f296ee23f32c28abfc086529dd.tar.bz2 |
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: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common/spl')
-rw-r--r-- | common/spl/spl_mmc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/spl/spl_mmc.c b/common/spl/spl_mmc.c index 6b3e9e4..7c7f329 100644 --- a/common/spl/spl_mmc.c +++ b/common/spl/spl_mmc.c @@ -155,7 +155,7 @@ static int mmc_load_image_raw_partition(struct mmc *mmc, int partition) disk_partition_t info; int err; - err = part_get_info(&mmc->block_dev, partition, &info); + err = part_get_info(mmc_get_blk_desc(mmc), partition, &info); if (err) { #ifdef CONFIG_SPL_LIBCOMMON_SUPPORT puts("spl: partition error\n"); |