diff options
| author | Adrian Hunter <[email protected]> | 2011-06-23 10:40:27 +0000 |
|---|---|---|
| committer | Chris Ball <[email protected]> | 2011-06-25 22:52:53 +0000 |
| commit | 4cf8c6dd2e261da94b87c4deadcc136ab022b6ac (patch) | |
| tree | 5bad08b6490c694b60d8c4afc0ab638ccea838ff /drivers/mmc/core/core.c | |
| parent | mmc: block: switch card to User Data Area when removing the block driver (diff) | |
| download | kernel-4cf8c6dd2e261da94b87c4deadcc136ab022b6ac.tar.gz kernel-4cf8c6dd2e261da94b87c4deadcc136ab022b6ac.zip | |
mmc: core: make erase timeout calculation allow for gated clock
The erase timeout calculation may depend on clock rate
which is zero if the clock is gated, so use
mmc_host_clk_rate() which allows for that case.
Signed-off-by: Adrian Hunter <[email protected]>
Signed-off-by: Chris Ball <[email protected]>
Diffstat (limited to 'drivers/mmc/core/core.c')
| -rw-r--r-- | drivers/mmc/core/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index 68091dda3f31..7843efe22359 100644 --- a/drivers/mmc/core/core.c +++ b/drivers/mmc/core/core.c @@ -1245,7 +1245,7 @@ static unsigned int mmc_mmc_erase_timeout(struct mmc_card *card, */ timeout_clks <<= 1; timeout_us += (timeout_clks * 1000) / - (card->host->ios.clock / 1000); + (mmc_host_clk_rate(card->host) / 1000); erase_timeout = timeout_us / 1000; |
