summaryrefslogtreecommitdiff
path: root/drivers/mmc
diff options
context:
space:
mode:
authorPavan Kunapuli <pkunapuli@nvidia.com>2011-11-02 17:23:46 +0530
committerDan Willemsen <dwillemsen@nvidia.com>2011-11-30 21:49:42 -0800
commit81aabe744b766ca787589199d473e66ac84e6677 (patch)
treefc68121b8862d436930216b0e0e80d8f70d31451 /drivers/mmc
parent3cda06480cea7a3115f3d9c2976dee0f7ac5182e (diff)
sdhci: tegra: Don't use WARN_ON in error cases
Do not use WARN_ON when regulators are not found as it would print the stack dump while booting. Use dev_err to print the error message. Change-Id: Ibe22cfe8d24719c2352084d7043f47d5203b84d0 Reviewed-on: http://git-master/r/61862 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com> Rebase-Id: R5f7ab8071b742843d960ce8b315e8095374af1b5
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/host/sdhci-tegra.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mmc/host/sdhci-tegra.c b/drivers/mmc/host/sdhci-tegra.c
index e9995a116668..b1c4cb31bb58 100644
--- a/drivers/mmc/host/sdhci-tegra.c
+++ b/drivers/mmc/host/sdhci-tegra.c
@@ -462,7 +462,7 @@ static int __devinit sdhci_tegra_probe(struct platform_device *pdev)
if (!plat->mmc_data.built_in) {
tegra_host->vdd_io_reg = regulator_get(mmc_dev(host->mmc), "vddio_sdmmc");
- if (WARN_ON(IS_ERR_OR_NULL(tegra_host->vdd_io_reg))) {
+ 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));
tegra_host->vdd_io_reg = NULL;
@@ -478,7 +478,7 @@ 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 (WARN_ON(IS_ERR_OR_NULL(tegra_host->vdd_slot_reg))) {
+ 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));
tegra_host->vdd_slot_reg = NULL;