projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
include: usb: modify gadget.h to include udc support
[oweals/u-boot.git]
/
drivers
/
mmc
/
mmc_write.c
diff --git
a/drivers/mmc/mmc_write.c
b/drivers/mmc/mmc_write.c
index aa2fdefa75edeb39540954ae40cf73a841f5870a..3db9669c82eee981ba861baf315fa95e144c9597 100644
(file)
--- a/
drivers/mmc/mmc_write.c
+++ b/
drivers/mmc/mmc_write.c
@@
-167,7
+167,8
@@
ulong mmc_bwrite(int dev_num, lbaint_t start, lbaint_t blkcnt, const void *src)
return 0;
do {
- cur = (blocks_todo > mmc->b_max) ? mmc->b_max : blocks_todo;
+ cur = (blocks_todo > mmc->cfg->b_max) ?
+ mmc->cfg->b_max : blocks_todo;
if (mmc_write_blocks(mmc, start, cur, src) != cur)
return 0;
blocks_todo -= cur;