Procházet zdrojové kódy

dm: mmc: Use cfg directly in mmc_bind()

This small change tidies up the code slightly.

Signed-off-by: Simon Glass <sjg@chromium.org>
Simon Glass před 9 roky
rodič
revize
e6c28073f9
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      drivers/mmc/mmc.c

+ 1 - 1
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;