aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/mmc/host
diff options
context:
space:
mode:
authorUlf Hansson <ulf.hansson@linaro.org>2020-07-13 12:18:30 +0200
committerUlf Hansson <ulf.hansson@linaro.org>2020-07-13 12:18:30 +0200
commitc624b49a40ae82076c72bf498560e55554a6b508 (patch)
tree944b5bbdde592fa53205a8a9c019c05c1fedc5f2 /drivers/mmc/host
parentmmc: sdhci: Fix potential null pointer access while accessing vqmmc (diff)
parentmmc: sdhci-of-aspeed: Fix clock divider calculation (diff)
downloadwireguard-linux-c624b49a40ae82076c72bf498560e55554a6b508.tar.xz
wireguard-linux-c624b49a40ae82076c72bf498560e55554a6b508.zip
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;
}