summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-05-14 14:03:10 -0600
committerSimon Glass <sjg@chromium.org>2016-05-27 10:23:10 -0600
commite6c28073f94be357d8e55beefd67ccf0c925c90e (patch)
tree8f7a308d8bffae84f7d58ebfb4008c4d9060ceb5
parente419a3ec1aa3f094268976b6c10e9b636a97c64d (diff)
downloadu-boot-imx-e6c28073f94be357d8e55beefd67ccf0c925c90e.zip
u-boot-imx-e6c28073f94be357d8e55beefd67ccf0c925c90e.tar.gz
u-boot-imx-e6c28073f94be357d8e55beefd67ccf0c925c90e.tar.bz2
dm: mmc: Use cfg directly in mmc_bind()
This small change tidies up the code slightly. Signed-off-by: Simon Glass <sjg@chromium.org>
-rw-r--r--drivers/mmc/mmc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c
index b7c936c..94f19ad 100644
--- a/drivers/mmc/mmc.c
+++ b/drivers/mmc/mmc.c
@@ -1557,7 +1557,7 @@ int mmc_bind(struct udevice *dev, struct mmc *mmc, const struct mmc_config *cfg)
bdesc->removable = 1;
/* setup initial part type */
- bdesc->part_type = mmc->cfg->part_type;
+ bdesc->part_type = cfg->part_type;
mmc->dev = dev;
return 0;