diff options
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/core/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index cbb23215ad87..f26a5f1d926d 100644 --- a/drivers/mmc/core/core.c +++ b/drivers/mmc/core/core.c | |||
@@ -995,7 +995,7 @@ void mmc_set_chip_select(struct mmc_host *host, int mode) | |||
995 | */ | 995 | */ |
996 | static void __mmc_set_clock(struct mmc_host *host, unsigned int hz) | 996 | static void __mmc_set_clock(struct mmc_host *host, unsigned int hz) |
997 | { | 997 | { |
998 | WARN_ON(hz < host->f_min); | 998 | WARN_ON(hz && hz < host->f_min); |
999 | 999 | ||
1000 | if (hz > host->f_max) | 1000 | if (hz > host->f_max) |
1001 | hz = host->f_max; | 1001 | hz = host->f_max; |