mmc: tegra: fix inconsistent IS_ERR and PTR_ERR
authorYueHaibing <yuehaibing@huawei.com>
Tue, 4 Sep 2018 02:59:09 +0000 (10:59 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 8 Oct 2018 09:40:43 +0000 (11:40 +0200)
Fix inconsistent IS_ERR and PTR_ERR in tegra_sdhci_init_pinctrl_info,
the proper pointer to be passed as argument is 'pinctrl_state_1v8'

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Reviewed-by: Aapo Vienamo <aapo.vienamo@iki.fi>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-tegra.c

index ea56628..7b95d08 100644 (file)
@@ -817,7 +817,7 @@ static int tegra_sdhci_init_pinctrl_info(struct device *dev,
                pinctrl_lookup_state(tegra_host->pinctrl_sdmmc, "sdmmc-1v8");
        if (IS_ERR(tegra_host->pinctrl_state_1v8)) {
                dev_warn(dev, "Missing 1.8V pad state, err: %ld\n",
-                        PTR_ERR(tegra_host->pinctrl_state_3v3));
+                        PTR_ERR(tegra_host->pinctrl_state_1v8));
                return -1;
        }