mmc: sdhci: Call host ops set_clock when disabling clocks

sdhci_set_clock() has been turned into a generic library function,
all calls to change clock rate needs to call the platform specific
set_clock which will call into the generic library after performing
platform specific operations. Fix this when disabling clocks.

Change-Id: Ib01b1984291682dad709a3e38500ad31e2d3e4bc
Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>
This commit is contained in:
Venkat Gopalakrishnan 2015-03-10 15:51:23 -07:00 committed by Subhash Jadavani
parent e2dffecbe7
commit 6b5b56b28b

View file

@ -1898,7 +1898,7 @@ static void sdhci_do_set_ios(struct sdhci_host *host, struct mmc_ios *ios)
sdhci_set_power(host, ios->power_mode, ios->vdd);
}
if (!ios->clock)
sdhci_set_clock(host, ios->clock);
host->ops->set_clock(host, ios->clock);
mmiowb();
}