Message ID | 1463256198-3829-14-git-send-email-sjg@chromium.org |
---|---|
State | Accepted |
Commit | 19d2e34237d5c077b2dc395522a1559e4b5c62df |
Delegated to: | Simon Glass |
Headers | show |
On 14 May 2016 at 14:03, Simon Glass <sjg@chromium.org> wrote: > Update sdhci.c so that it works with driver model enabled for block devices. > > Signed-off-by: Simon Glass <sjg@chromium.org> > --- > > drivers/mmc/sdhci.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Applied to u-boot-dm.
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 */
Update sdhci.c so that it works with driver model enabled for block devices. Signed-off-by: Simon Glass <sjg@chromium.org> --- drivers/mmc/sdhci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)