summaryrefslogtreecommitdiff
path: root/drivers/mmc/pic32_sdhci.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mmc/pic32_sdhci.c')
-rw-r--r--drivers/mmc/pic32_sdhci.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/mmc/pic32_sdhci.c b/drivers/mmc/pic32_sdhci.c
index c06364cfc1..1e14fa14d6 100644
--- a/drivers/mmc/pic32_sdhci.c
+++ b/drivers/mmc/pic32_sdhci.c
@@ -56,7 +56,9 @@ static int pic32_sdhci_probe(struct udevice *dev)
return ret;
}
- ret = add_sdhci(host, f_min_max[1], f_min_max[0]);
+ host->max_clk = f_min_max[1];
+
+ ret = add_sdhci(host, 0, f_min_max[0]);
if (ret)
return ret;
host->mmc->dev = dev;