mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-02-25 13:45:25 +01:00
dm: mmc: Use cfg directly in mmc_bind()
This small change tidies up the code slightly. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
e419a3ec1a
commit
e6c28073f9
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue