summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-05-14 14:03:04 -0600
committerSimon Glass <sjg@chromium.org>2016-05-27 10:23:08 -0600
commit19d2e34237d5c077b2dc395522a1559e4b5c62df (patch)
tree0a1a5183c1374fd920e1b04215194d2870d8b2a2 /drivers
parent5461acba44b7da8292ba2cbeaf961279d9b8c187 (diff)
downloadu-boot-imx-19d2e34237d5c077b2dc395522a1559e4b5c62df.zip
u-boot-imx-19d2e34237d5c077b2dc395522a1559e4b5c62df.tar.gz
u-boot-imx-19d2e34237d5c077b2dc395522a1559e4b5c62df.tar.bz2
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 <sjg@chromium.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mmc/sdhci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/sdhci.c b/drivers/mmc/sdhci.c
index ef7e615..5c71ab8 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 */