diff options
author | Shawn Lin <shawn.lin@rock-chips.com> | 2017-07-19 03:55:46 -0400 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2017-08-30 08:01:34 -0400 |
commit | 69f25f9bb0cd7a59c3f1d0ecb541049c2e5fb0f9 (patch) | |
tree | c3e203316e1959db90c4325241f6a100687f4721 | |
parent | b044b1bcc5de194688c33e5911b96ee93fd9ce48 (diff) |
mmc: core: turn the pr_info under CONFIG_MMC_DEBUG into pr_debug
There are lots of debug message in core.c which use pr_debug
for better dynamic log level control. So it doesn't make sense
for those print to still keep working only under CONFIG_MMC_DEBUG.
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
-rw-r--r-- | drivers/mmc/core/core.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index 634f9caecb88..731aa9f1ee8e 100644 --- a/drivers/mmc/core/core.c +++ b/drivers/mmc/core/core.c | |||
@@ -2436,10 +2436,9 @@ static int mmc_rescan_try_freq(struct mmc_host *host, unsigned freq) | |||
2436 | { | 2436 | { |
2437 | host->f_init = freq; | 2437 | host->f_init = freq; |
2438 | 2438 | ||
2439 | #ifdef CONFIG_MMC_DEBUG | 2439 | pr_debug("%s: %s: trying to init card at %u Hz\n", |
2440 | pr_info("%s: %s: trying to init card at %u Hz\n", | ||
2441 | mmc_hostname(host), __func__, host->f_init); | 2440 | mmc_hostname(host), __func__, host->f_init); |
2442 | #endif | 2441 | |
2443 | mmc_power_up(host, host->ocr_avail); | 2442 | mmc_power_up(host, host->ocr_avail); |
2444 | 2443 | ||
2445 | /* | 2444 | /* |
@@ -2670,9 +2669,7 @@ int mmc_power_save_host(struct mmc_host *host) | |||
2670 | { | 2669 | { |
2671 | int ret = 0; | 2670 | int ret = 0; |
2672 | 2671 | ||
2673 | #ifdef CONFIG_MMC_DEBUG | 2672 | pr_debug("%s: %s: powering down\n", mmc_hostname(host), __func__); |
2674 | pr_info("%s: %s: powering down\n", mmc_hostname(host), __func__); | ||
2675 | #endif | ||
2676 | 2673 | ||
2677 | mmc_bus_get(host); | 2674 | mmc_bus_get(host); |
2678 | 2675 | ||
@@ -2696,9 +2693,7 @@ int mmc_power_restore_host(struct mmc_host *host) | |||
2696 | { | 2693 | { |
2697 | int ret; | 2694 | int ret; |
2698 | 2695 | ||
2699 | #ifdef CONFIG_MMC_DEBUG | 2696 | pr_debug("%s: %s: powering up\n", mmc_hostname(host), __func__); |
2700 | pr_info("%s: %s: powering up\n", mmc_hostname(host), __func__); | ||
2701 | #endif | ||
2702 | 2697 | ||
2703 | mmc_bus_get(host); | 2698 | mmc_bus_get(host); |
2704 | 2699 | ||