]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
dm: spl: mmc: Support raw partitions with CONFIG_BLK
authorSimon Glass <sjg@chromium.org>
Tue, 5 Jul 2016 23:10:18 +0000 (17:10 -0600)
committerSimon Glass <sjg@chromium.org>
Wed, 27 Jul 2016 20:15:54 +0000 (14:15 -0600)
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>
common/spl/spl_mmc.c

index 6b3e9e4a17a0e6be63179c9a944fb98313d3d76e..7c7f32959b224a44b789bc8b4642c60b2e28655f 100644 (file)
@@ -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");