diff options
Diffstat (limited to 'drivers/mmc/host/sdhci.c')
-rw-r--r-- | drivers/mmc/host/sdhci.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index 34ab77bd12ae..75d0ecbce10c 100644 --- a/drivers/mmc/host/sdhci.c +++ b/drivers/mmc/host/sdhci.c | |||
@@ -949,6 +949,12 @@ static void sdhci_set_clock(struct sdhci_host *host, unsigned int clock) | |||
949 | if (clock == host->clock) | 949 | if (clock == host->clock) |
950 | return; | 950 | return; |
951 | 951 | ||
952 | if (host->ops->set_clock) { | ||
953 | host->ops->set_clock(host, clock); | ||
954 | if (host->quirks & SDHCI_QUIRK_NONSTANDARD_CLOCK) | ||
955 | return; | ||
956 | } | ||
957 | |||
952 | sdhci_writew(host, 0, SDHCI_CLOCK_CONTROL); | 958 | sdhci_writew(host, 0, SDHCI_CLOCK_CONTROL); |
953 | 959 | ||
954 | if (clock == 0) | 960 | if (clock == 0) |