aboutsummaryrefslogtreecommitdiff
path: root/drivers/mmc/host
diff options
context:
space:
mode:
authorUlf Hansson2020-07-13 12:18:30 +0200
committerUlf Hansson2020-07-13 12:18:30 +0200
commitc624b49a40ae82076c72bf498560e55554a6b508 (patch)
tree944b5bbdde592fa53205a8a9c019c05c1fedc5f2 /drivers/mmc/host
parent3debc24f7fe637ebefbaa3d37aeecb33a69bde11 (diff)
parentebd4050c6144b38098d8eed34df461e5e3fa82a9 (diff)
Merge branch 'fixes' into next
Diffstat (limited to 'drivers/mmc/host')
-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;
}