OSDN Git Service

mmc: Fix incorrect warning when setting 0 Hz via debugfs
authorAdrian Hunter <adrian.hunter@intel.com>
Tue, 23 Sep 2014 20:00:26 +0000 (23:00 +0300)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 29 Sep 2014 09:41:21 +0000 (11:41 +0200)
commit6a98f1e83a2874a189754ded5254ae687828739e
treefd6ccca362404cd69a5965048f49ba582832eb5f
parent6800754c3674fb36350b2df9c3f84676e7e7a8f7
mmc: Fix incorrect warning when setting 0 Hz via debugfs

It is possible to turn off the card clock by setting
the frequency to zero via debugfs e.g.

echo 0 > /sys/kernel/debug/mmc0/clock

However that produces an incorrect warning that is
designed to warn if the frequency is below the minimum
operating frequency.  So correct the warning.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/core.c