summaryrefslogtreecommitdiff
path: root/drivers/mmc
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-05-19 02:09:36 (GMT)
committerSimon Glass <sjg@chromium.org>2017-06-01 13:03:13 (GMT)
commit66e0ed5c17810887aa1246a54b80a0d9c1a5a31e (patch)
treec54f10692b79c6ec5ad11e639cced9e17344cf2d /drivers/mmc
parenta5493f828ee5392697628a767d9f2c7d4e9d3628 (diff)
downloadu-boot-66e0ed5c17810887aa1246a54b80a0d9c1a5a31e.tar.xz
dm: mmc: Convert uclass to livetree
Update the mmc uclass to support a live device tree. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/mmc-uclass.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mmc/mmc-uclass.c b/drivers/mmc/mmc-uclass.c
index 16cc91e..4dc3925 100644
--- a/drivers/mmc/mmc-uclass.c
+++ b/drivers/mmc/mmc-uclass.c
@@ -202,7 +202,8 @@ int mmc_bind(struct udevice *dev, struct mmc *mmc, const struct mmc_config *cfg)
#endif
#ifndef CONFIG_SPL_BUILD
/* Use the fixed index with aliase node's index */
- fdtdec_get_alias_seq(gd->fdt_blob, "mmc", dev_of_offset(dev), &devnum);
+ ret = dev_read_alias_seq(dev, &devnum);
+ debug("%s: alias ret=%d, devnum=%d\n", __func__, ret, devnum);
#endif
ret = blk_create_devicef(dev, "mmc_blk", "blk", IF_TYPE_MMC,