diff mbox

[U-Boot,19/20] dm: mmc: Use cfg directly in mmc_bind()

Message ID 1463256198-3829-20-git-send-email-sjg@chromium.org
State Accepted
Commit e6c28073f94be357d8e55beefd67ccf0c925c90e
Delegated to: Simon Glass
Headers show

Commit Message

Simon Glass May 14, 2016, 8:03 p.m. UTC
This small change tidies up the code slightly.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 drivers/mmc/mmc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Simon Glass May 27, 2016, 4:25 p.m. UTC | #1
On 14 May 2016 at 14:03, Simon Glass <sjg@chromium.org> wrote:
> This small change tidies up the code slightly.
>
> Signed-off-by: Simon Glass <sjg@chromium.org>
> ---
>
>  drivers/mmc/mmc.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Applied to u-boot-dm.
diff mbox

Patch

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;