diff mbox series

[-next] mmc: tegra: Fix copy-paste error in tegra_sdhci_init_pinctrl_info()

Message ID 1536145928-15629-1-git-send-email-weiyongjun1@huawei.com (mailing list archive)
State New, archived
Headers show
Series [-next] mmc: tegra: Fix copy-paste error in tegra_sdhci_init_pinctrl_info() | expand

Commit Message

Wei Yongjun Sept. 5, 2018, 11:12 a.m. UTC
The error code get against a wrong variable. This patch fix it.

Fixes: 5783a9529891 ("mmc: tegra: Reconfigure pad voltages during voltage switching")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
---
 drivers/mmc/host/sdhci-tegra.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Ulf Hansson Sept. 6, 2018, 6:31 a.m. UTC | #1
On 5 September 2018 at 13:12, Wei Yongjun <weiyongjun1@huawei.com> wrote:
> The error code get against a wrong variable. This patch fix it.
>
> Fixes: 5783a9529891 ("mmc: tegra: Reconfigure pad voltages during voltage switching")
> Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>

Thanks for the patch, however I have already queued a patch in my next
branch fixing this problem.

Kind regards
Uffe

> ---
>  drivers/mmc/host/sdhci-tegra.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/mmc/host/sdhci-tegra.c b/drivers/mmc/host/sdhci-tegra.c
> index e80716c..c789158 100644
> --- a/drivers/mmc/host/sdhci-tegra.c
> +++ b/drivers/mmc/host/sdhci-tegra.c
> @@ -724,7 +724,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;
>         }
>
diff mbox series

Patch

diff --git a/drivers/mmc/host/sdhci-tegra.c b/drivers/mmc/host/sdhci-tegra.c
index e80716c..c789158 100644
--- a/drivers/mmc/host/sdhci-tegra.c
+++ b/drivers/mmc/host/sdhci-tegra.c
@@ -724,7 +724,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;
 	}