From 4d0b8611cd4da64f075b8e07a126f0eb498fb153 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eric=20B=C3=A9nard?= Date: Tue, 12 Oct 2010 09:29:37 +0200 Subject: mmc: sdhci: mmc_rescan: reduce verbosity MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit mmc_rescan() includes a pr_info which prints 4 lines each second for hosts configured with MMC_CAP_NEEDS_POLL. This patch enables the message only if CONFIG_MMC_DEBUG is selected. Tested on i.MX51's sdhci-esdhc. Signed-off-by: Eric BĂ©nard Acked-by: Wolfram Sang Acked-by: Hein Tibosch Signed-off-by: Chris Ball --- drivers/mmc/core/core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'drivers/mmc') diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index 222466df66ff..c5e3c9bf6fdd 100644 --- a/drivers/mmc/core/core.c +++ b/drivers/mmc/core/core.c @@ -1452,9 +1452,10 @@ void mmc_rescan(struct work_struct *work) mmc_release_host(host); goto out; } +#ifdef CONFIG_MMC_DEBUG pr_info("%s: %s: trying to init card at %u Hz\n", mmc_hostname(host), __func__, host->f_init); - +#endif mmc_power_up(host); sdio_reset(host); mmc_go_idle(host); -- cgit v1.2.3