From: Simon Glass Date: Sat, 14 May 2016 20:03:04 +0000 (-0600) Subject: dm: mmc: Convert sdhci to support CONFIG_BLK X-Git-Tag: v2016.07-rc1~69^2~7 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=19d2e34237d5c077b2dc395522a1559e4b5c62df;p=u-boot dm: mmc: Convert sdhci to support CONFIG_BLK Update sdhci.c so that it works with driver model enabled for block devices. Signed-off-by: Simon Glass --- diff --git a/drivers/mmc/sdhci.c b/drivers/mmc/sdhci.c index ef7e6150f9..5c71ab8d05 100644 --- a/drivers/mmc/sdhci.c +++ b/drivers/mmc/sdhci.c @@ -137,7 +137,7 @@ static int sdhci_send_command(struct mmc *mmc, struct mmc_cmd *cmd, int trans_bytes = 0, is_aligned = 1; u32 mask, flags, mode; unsigned int time = 0, start_addr = 0; - int mmc_dev = mmc->block_dev.devnum; + int mmc_dev = mmc_get_blk_desc(mmc)->devnum; unsigned start = get_timer(0); /* Timeout unit - ms */