Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2120248imm; Mon, 3 Sep 2018 20:00:59 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZNfm2nltCckRg7pNojQ3T5MILjcbNxhGyzthDd/OhFQj4uShbRRaG5klngY2YWs0SMLq7n X-Received: by 2002:a65:448a:: with SMTP id l10-v6mr29496290pgq.382.1536030059095; Mon, 03 Sep 2018 20:00:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536030059; cv=none; d=google.com; s=arc-20160816; b=It/WcDIe7awh5+jmLwo9BLNwa19z6K6y/hk/GqJT90DVllTeBMb5NfIy4EhgEMXSFU Q/cZ67V0/CeSiIhwW0yi+U6jrc8NmTMQ7f3dcxHQRH+4fUOBEyMbSWMAjyBmNhXvkMYg IF55u07HE3S3uw0JYFwXlJjKebnMP+YFXfgGNfvnFESVFUAeTLu3YieWn2qqiSv4fq4K I/f7eOotECArRqMoWNZjkpVuqPIPfScmkZY0rfrfkQrbJtQtQHMDceOn1fzHPJZmGWGj NfjvxfKWmF0vMR4Mg8Ee1p4HZWBR6Q2DDCdOm7/4HAcf5pHwOByk2NYgsHUFt+jnusay l9dA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:arc-authentication-results; bh=sm7iRQ7NT/7S5iVETH/1HO7wBIRmNbyUC03+smhZe2I=; b=GYQ0RqlEyTsbIP5uue84bwiBBp36t0OX110zQEoD9MgNu23bQDePdx8N6oezpUD5+1 yYQOs3WS0oSgIwDIWGyxAks+Y0l02l4vT3/bT+u0Mm6vf/5NkEkivlJgPzDLGw7j6jCI 7XosViZh3Yg9CXTlfei1hn/yF5ZMLd+BPorNbz1YErv02+dhoB7ucjJIBSrCyNvQygCN GVzDVH+z0CQmqnk6WwJ26Sb9Nf+bN9rEk/0jXwobbKImLWcyth1iEI8Hh68EqkeczgXL PXawrsGzZLdwKq7OfrBbOrvuxLHWIwD9ESJPElWrrGCb+k57bAphtpkQDP5aoF98M9rP 6TYQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v40-v6si20507052plg.124.2018.09.03.20.00.40; Mon, 03 Sep 2018 20:00:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726203AbeIDHWZ (ORCPT + 99 others); Tue, 4 Sep 2018 03:22:25 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:38110 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725990AbeIDHWZ (ORCPT ); Tue, 4 Sep 2018 03:22:25 -0400 Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id DC26076D4B5E; Tue, 4 Sep 2018 10:59:23 +0800 (CST) Received: from localhost (10.177.31.96) by DGGEMS404-HUB.china.huawei.com (10.3.19.204) with Microsoft SMTP Server id 14.3.399.0; Tue, 4 Sep 2018 10:59:15 +0800 From: YueHaibing To: , , , CC: , , , YueHaibing Subject: [PATCH] mmc: tegra: fix inconsistent IS_ERR and PTR_ERR Date: Tue, 4 Sep 2018 10:59:09 +0800 Message-ID: <20180904025909.13700-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.177.31.96] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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; } -- 2.7.0