From: Simon Glass Date: Tue, 5 Jul 2016 23:10:18 +0000 (-0600) Subject: dm: spl: mmc: Support raw partitions with CONFIG_BLK X-Git-Tag: v2016.09-rc2~175^2~2 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1e2b3ef8653417f296ee23f32c28abfc086529dd;p=oweals%2Fu-boot.git 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 --- diff --git a/common/spl/spl_mmc.c b/common/spl/spl_mmc.c index 6b3e9e4a17..7c7f32959b 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");