aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/mmc/host/sdhci.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c
index fc96f8cb9c0b..7f7f45b4b07b 100644
--- a/drivers/mmc/host/sdhci.c
+++ b/drivers/mmc/host/sdhci.c
@@ -1772,7 +1772,8 @@ int sdhci_add_host(struct sdhci_host *host)
1772 * Set host parameters. 1772 * Set host parameters.
1773 */ 1773 */
1774 mmc->ops = &sdhci_ops; 1774 mmc->ops = &sdhci_ops;
1775 if (host->ops->get_min_clock) 1775 if (host->quirks & SDHCI_QUIRK_NONSTANDARD_CLOCK &&
1776 host->ops->set_clock && host->ops->get_min_clock)
1776 mmc->f_min = host->ops->get_min_clock(host); 1777 mmc->f_min = host->ops->get_min_clock(host);
1777 else 1778 else
1778 mmc->f_min = host->max_clk / 256; 1779 mmc->f_min = host->max_clk / 256;