summaryrefslogtreecommitdiff
path: root/drivers/mmc
diff options
context:
space:
mode:
authorUlf Hansson <ulf.hansson@linaro.org>2020-07-13 13:18:30 +0300
committerUlf Hansson <ulf.hansson@linaro.org>2020-07-13 13:18:30 +0300
commitc624b49a40ae82076c72bf498560e55554a6b508 (patch)
tree944b5bbdde592fa53205a8a9c019c05c1fedc5f2 /drivers/mmc
parent3debc24f7fe637ebefbaa3d37aeecb33a69bde11 (diff)
parentebd4050c6144b38098d8eed34df461e5e3fa82a9 (diff)
downloadlinux-c624b49a40ae82076c72bf498560e55554a6b508.tar.xz
Merge branch 'fixes' into next
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/host/sdhci-of-aspeed.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/host/sdhci-of-aspeed.c b/drivers/mmc/host/sdhci-of-aspeed.c
index 56912e30c47e..a1bcc0f4ba9e 100644
--- a/drivers/mmc/host/sdhci-of-aspeed.c
+++ b/drivers/mmc/host/sdhci-of-aspeed.c
@@ -68,7 +68,7 @@ static void aspeed_sdhci_set_clock(struct sdhci_host *host, unsigned int clock)
if (WARN_ON(clock > host->max_clk))
clock = host->max_clk;
- for (div = 1; div < 256; div *= 2) {
+ for (div = 2; div < 256; div *= 2) {
if ((parent / div) <= clock)
break;
}