提交 66e0ed5c 编写于 作者: S Simon Glass

dm: mmc: Convert uclass to livetree

Update the mmc uclass to support a live device tree.
Signed-off-by: NSimon Glass <sjg@chromium.org>
上级 a5493f82
......@@ -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,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册