diff options
| author | Tom Rini <trini@ti.com> | 2014-03-28 08:24:01 -0400 | 
|---|---|---|
| committer | Tom Rini <trini@ti.com> | 2014-03-28 08:24:01 -0400 | 
| commit | 82b9547387389cc4147596cb45609bf29d3fdbdb (patch) | |
| tree | 76e2566eaa67e09e7c2262bdc2354d81b8523ecd /drivers/mmc/mmc_write.c | |
| parent | 81b196bed881e3f38d7b1eabe1b60d9b86c7bb7b (diff) | |
| parent | eea4e6fe82fef9975e0153644935b89882890450 (diff) | |
| download | olio-uboot-2014.01-82b9547387389cc4147596cb45609bf29d3fdbdb.tar.xz olio-uboot-2014.01-82b9547387389cc4147596cb45609bf29d3fdbdb.zip | |
Merge branch 'master' of git://git.denx.de/u-boot-mmc
Diffstat (limited to 'drivers/mmc/mmc_write.c')
| -rw-r--r-- | drivers/mmc/mmc_write.c | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/drivers/mmc/mmc_write.c b/drivers/mmc/mmc_write.c index aa2fdefa7..3db9669c8 100644 --- 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; |