Skip to content

Commit

Permalink
mmc: tegra: fix inconsistent IS_ERR and PTR_ERR
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
YueHaibing authored and Ulf Hansson committed Oct 8, 2018
1 parent 61dad40 commit e537824
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mmc/host/sdhci-tegra.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit e537824

Please sign in to comment.