projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e419a3e
)
dm: mmc: Use cfg directly in mmc_bind()
author
Simon Glass
<sjg@chromium.org>
Sat, 14 May 2016 20:03:10 +0000
(14:03 -0600)
committer
Simon Glass
<sjg@chromium.org>
Fri, 27 May 2016 16:23:10 +0000
(10:23 -0600)
This small change tidies up the code slightly.
Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/mmc/mmc.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/mmc.c
b/drivers/mmc/mmc.c
index b7c936c72020a23241dc2269cf4d06bb1e229de6..94f19ade3eda0b3d6e2157d87e66c0bed29e62f3 100644
(file)
--- 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;