summaryrefslogtreecommitdiffstats
path: root/board
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-04-23 20:02:11 -0600
committerSimon Glass <sjg@chromium.org>2017-06-01 07:03:05 -0600
commit0e513e788ff7df8c68525c8bf952eb9ef9ab7482 (patch)
treeb5f2a7d4c2f7e35d38511086ea53b400840889b5 /board
parent854f9a71f594555858cdffce18f6183a75d1d730 (diff)
downloadu-boot-0e513e788ff7df8c68525c8bf952eb9ef9ab7482.tar.gz
u-boot-0e513e788ff7df8c68525c8bf952eb9ef9ab7482.tar.xz
u-boot-0e513e788ff7df8c68525c8bf952eb9ef9ab7482.zip
tegra: Convert MMC to use driver model for operations
Enable CONFIG_DM_MMC_OPS and CONFIG_BLK for all Tegra devices. This moves Tegra to use driver model fully for MMC. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'board')
-rw-r--r--board/toradex/common/tdx-cfg-block.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/toradex/common/tdx-cfg-block.c b/board/toradex/common/tdx-cfg-block.c
index 0014ce80a1..2a810c89aa 100644
--- a/board/toradex/common/tdx-cfg-block.c
+++ b/board/toradex/common/tdx-cfg-block.c
@@ -110,7 +110,7 @@ static int tdx_cfg_block_mmc_storage(u8 *config_block, int write)
ret = -ENODEV;
goto out;
}
- if (part != mmc->block_dev.hwpart) {
+ if (part != mmc_get_blk_desc(mmc)->hwpart) {
if (blk_select_hwpart_devnum(IF_TYPE_MMC, dev, part)) {
puts("MMC partition switch failed\n");
ret = -ENODEV;