summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorRamalingam C <ramalingamc@nvidia.com>2012-05-04 11:57:55 +0530
committerMatthew Pedro <mapedro@nvidia.com>2012-05-16 15:43:41 -0700
commitf90aead68fe0b4c270b7059126c34469919fc33a (patch)
tree224a4c8efcb6bbb384a3e958cac523ccabeb6cd6 /drivers
parentbc9b3f6feb0090e6ef019b3c7cadeaea7bb78c84 (diff)
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 <ramalingamc@nvidia.com> Reviewed-on: http://git-master/r/100490 (cherry picked from commit 94e4c7d5f745f9fd4471796a5321f87508daba7c) Reviewed-on: http://git-master/r/102753 GVS: Gerrit_Virtual_Submit Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mmc/host/sdhci-tegra.c10
1 files changed, 6 insertions, 4 deletions
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;
}