mmc: host: loglevel of a message to KERN_INFO
Ramalingam C [Fri, 4 May 2012 06:27:55 +0000 (11:27 +0530)]
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
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

drivers/mmc/host/sdhci-tegra.c

index b8f5630..d6ed03d 100644 (file)
@@ -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;
                }