mmc: core: make erase timeout calculation allow for gated clock
authorAdrian Hunter <adrian.hunter@intel.com>
Thu, 23 Jun 2011 10:40:27 +0000 (13:40 +0300)
committerChris Ball <cjb@laptop.org>
Sat, 25 Jun 2011 22:52:53 +0000 (18:52 -0400)
commit4cf8c6dd2e261da94b87c4deadcc136ab022b6ac
tree5bad08b6490c694b60d8c4afc0ab638ccea838ff
parentddd6fa7e794e62af3ec3eb4ffdc78489885701f2
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 <adrian.hunter@intel.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/core/core.c