From 94e4c7d5f745f9fd4471796a5321f87508daba7c Mon Sep 17 00:00:00 2001 From: Ramalingam C Date: Fri, 4 May 2012 11:57:55 +0530 Subject: mmc: host: loglevel of a message to KERN_INFO Some boards don't have a vddio regulator for few rails hence not getting the regulator handle. And we assume that those rails are always powered. Hence rephrased the error message and lowered the loglevel to KERN_INFO. Bug 976177 Change-Id: I92b82f75934eaf7137584a625065e3389b6ae1b7 Signed-off-by: Ramalingam C Reviewed-on: http://git-master/r/100490 Reviewed-by: Simone Willett Tested-by: Simone Willett --- drivers/mmc/host/sdhci-tegra.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'drivers') diff --git a/drivers/mmc/host/sdhci-tegra.c b/drivers/mmc/host/sdhci-tegra.c index b8f5630058f1..d6ed03d4f22a 100644 --- a/drivers/mmc/host/sdhci-tegra.c +++ b/drivers/mmc/host/sdhci-tegra.c @@ -1035,8 +1035,9 @@ static int __devinit sdhci_tegra_probe(struct platform_device *pdev) } tegra_host->vdd_io_reg = regulator_get(mmc_dev(host->mmc), "vddio_sdmmc"); if (IS_ERR_OR_NULL(tegra_host->vdd_io_reg)) { - dev_err(mmc_dev(host->mmc), "%s regulator not found: %ld\n", - "vddio_sdmmc", PTR_ERR(tegra_host->vdd_io_reg)); + dev_info(mmc_dev(host->mmc), "%s regulator not found: %ld." + "Assuming vddio_sdmmc is not required.\n", + "vddio_sdmmc", PTR_ERR(tegra_host->vdd_io_reg)); tegra_host->vdd_io_reg = NULL; } else { rc = regulator_set_voltage(tegra_host->vdd_io_reg, @@ -1050,8 +1051,9 @@ static int __devinit sdhci_tegra_probe(struct platform_device *pdev) tegra_host->vdd_slot_reg = regulator_get(mmc_dev(host->mmc), "vddio_sd_slot"); if (IS_ERR_OR_NULL(tegra_host->vdd_slot_reg)) { - dev_err(mmc_dev(host->mmc), "%s regulator not found: %ld\n", - "vddio_sd_slot", PTR_ERR(tegra_host->vdd_slot_reg)); + dev_info(mmc_dev(host->mmc), "%s regulator not found: %ld." + " Assuming vddio_sd_slot is not required.\n", + "vddio_sd_slot", PTR_ERR(tegra_host->vdd_slot_reg)); tegra_host->vdd_slot_reg = NULL; } -- cgit v1.2.3