]> git.dujemihanovic.xyz Git - u-boot.git/commit
MMC: make b_max unconditional
authorJohn Rigby <john.rigby@linaro.org>
Mon, 18 Apr 2011 05:50:08 +0000 (05:50 +0000)
committerAndy Fleming <afleming@freescale.com>
Fri, 29 Apr 2011 08:21:54 +0000 (03:21 -0500)
commit8feafcc49c0b7a9c541904f95a43dbef2fecc38b
tree0ba20c111634ddbb2513db50d3a3f05009f2cc08
parent28df15e0234a773cfec98c2775915abe1472db3c
MMC: make b_max unconditional

Make existing field b_max field in struct mmc unconditional
and use it instead of CONFIG_SYS_MMC_MAX_BLK_COUNT in mmc_bread
and mmc_bwrite.

Initialize b_max to CONFIG_SYS_MMC_MAX_BLK_COUNT in mmc_register
if it has not been initialized by the hw driver.

Initialize b_max to 0 in all callers to mmc_register.

Signed-off-by: John Rigby <john.rigby@linaro.org>
Signed-off-by: Andy Fleming <afleming@freescale.com>
drivers/mmc/arm_pl180_mmci.c
drivers/mmc/bfin_sdh.c
drivers/mmc/davinci_mmc.c
drivers/mmc/gen_atmel_mci.c
drivers/mmc/mmc.c
drivers/mmc/mxcmmc.c
drivers/mmc/omap_hsmmc.c
drivers/mmc/s5p_mmc.c
include/mmc.h