diff options
Diffstat (limited to 'drivers/mmc/host/sh_mmcif.c')
-rw-r--r-- | drivers/mmc/host/sh_mmcif.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/mmc/host/sh_mmcif.c b/drivers/mmc/host/sh_mmcif.c index 4bb999ed335d..724b35e85a26 100644 --- a/drivers/mmc/host/sh_mmcif.c +++ b/drivers/mmc/host/sh_mmcif.c | |||
@@ -1299,13 +1299,7 @@ static int __devinit sh_mmcif_probe(struct platform_device *pdev) | |||
1299 | 1299 | ||
1300 | mmc->ops = &sh_mmcif_ops; | 1300 | mmc->ops = &sh_mmcif_ops; |
1301 | mmc->f_max = host->clk / 2; | 1301 | mmc->f_max = host->clk / 2; |
1302 | /* close to 400KHz */ | 1302 | mmc->f_min = host->clk / 512; |
1303 | if (host->clk < 51200000) | ||
1304 | mmc->f_min = host->clk / 128; | ||
1305 | else if (host->clk < 102400000) | ||
1306 | mmc->f_min = host->clk / 256; | ||
1307 | else | ||
1308 | mmc->f_min = host->clk / 512; | ||
1309 | if (pd->ocr) | 1303 | if (pd->ocr) |
1310 | mmc->ocr_avail = pd->ocr; | 1304 | mmc->ocr_avail = pd->ocr; |
1311 | mmc->caps = MMC_CAP_MMC_HIGHSPEED; | 1305 | mmc->caps = MMC_CAP_MMC_HIGHSPEED; |