diff options
Diffstat (limited to 'drivers/mmc/host/omap_hsmmc.c')
-rw-r--r-- | drivers/mmc/host/omap_hsmmc.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c index fd0c661bbad3..36e7f5bc58a3 100644 --- a/drivers/mmc/host/omap_hsmmc.c +++ b/drivers/mmc/host/omap_hsmmc.c | |||
@@ -1912,8 +1912,12 @@ static int __init omap_hsmmc_probe(struct platform_device *pdev) | |||
1912 | if (mmc_slot(host).vcc_aux_disable_is_sleep) | 1912 | if (mmc_slot(host).vcc_aux_disable_is_sleep) |
1913 | mmc_slot(host).no_off = 1; | 1913 | mmc_slot(host).no_off = 1; |
1914 | 1914 | ||
1915 | mmc->f_min = OMAP_MMC_MIN_CLOCK; | 1915 | mmc->f_min = OMAP_MMC_MIN_CLOCK; |
1916 | mmc->f_max = OMAP_MMC_MAX_CLOCK; | 1916 | |
1917 | if (pdata->max_freq > 0) | ||
1918 | mmc->f_max = pdata->max_freq; | ||
1919 | else | ||
1920 | mmc->f_max = OMAP_MMC_MAX_CLOCK; | ||
1917 | 1921 | ||
1918 | spin_lock_init(&host->irq_lock); | 1922 | spin_lock_init(&host->irq_lock); |
1919 | 1923 | ||