mmc: core: set regulator not found message as debug
authorludovic.desroches@atmel.com <ludovic.desroches@atmel.com>
Mon, 9 Nov 2015 14:03:59 +0000 (15:03 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 22 Dec 2015 10:32:05 +0000 (11:32 +0100)
Turn the informative message about no vmmc/vqmmc regulator found in
debug one. There is no need to indicate that something optional is
missing. Moreover, it can bring confusion, people who doesn't know
it is optional may consider these messages as warnings or errors.

Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/core.c

index a450e91504f363d12bab6ba9a4985c57aac381c0..07b2f086213f2e12c5f27da6bd37d462f7c71d14 100644 (file)
@@ -1485,7 +1485,7 @@ int mmc_regulator_get_supply(struct mmc_host *mmc)
        if (IS_ERR(mmc->supply.vmmc)) {
                if (PTR_ERR(mmc->supply.vmmc) == -EPROBE_DEFER)
                        return -EPROBE_DEFER;
-               dev_info(dev, "No vmmc regulator found\n");
+               dev_dbg(dev, "No vmmc regulator found\n");
        } else {
                ret = mmc_regulator_get_ocrmask(mmc->supply.vmmc);
                if (ret > 0)
@@ -1497,7 +1497,7 @@ int mmc_regulator_get_supply(struct mmc_host *mmc)
        if (IS_ERR(mmc->supply.vqmmc)) {
                if (PTR_ERR(mmc->supply.vqmmc) == -EPROBE_DEFER)
                        return -EPROBE_DEFER;
-               dev_info(dev, "No vqmmc regulator found\n");
+               dev_dbg(dev, "No vqmmc regulator found\n");
        }
 
        return 0;