From: Simon Glass Date: Sat, 14 May 2016 20:03:10 +0000 (-0600) Subject: dm: mmc: Use cfg directly in mmc_bind() X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=e6c28073f94be357d8e55beefd67ccf0c925c90e;p=u-boot.git dm: mmc: Use cfg directly in mmc_bind() This small change tidies up the code slightly. Signed-off-by: Simon Glass --- diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index b7c936c720..94f19ade3e 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;