Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2364794imm; Tue, 4 Sep 2018 03:14:51 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZ0eAs9J1+7BOzQlI+caDpTY9dOtywOqVL5d5vm98HsnAqJerl3P58lSbAENPNS2a0CuUGc X-Received: by 2002:a17:902:7086:: with SMTP id z6-v6mr26749831plk.236.1536056091384; Tue, 04 Sep 2018 03:14:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536056091; cv=none; d=google.com; s=arc-20160816; b=gFaw47kVHotdzs00PefbejHNFpuPVAFH39ql7brqPai1IJwse307tNlXCDTYNGwy5S jjAMb6AvtWSTXwahrDj8UqgiAYF5pKi0IY0rniM69Fafd3nu653e/I77fihhoPKjasr2 CyrmfPYjK3E0luhSG7kfT2VCvhVyfBflSkJGV7mipXcNxMOG0LmaHH2+hUhe5iW4Igxd mdxm06jJDrwCywtYMRg1GK5+Ht2by9C5UtdlVUJkYoCWYvrUUpg7wGovw8slcdVg8dNk 7ZTzZEoBa4oVO4pSsYWXCaOX6t2gP1MuGNTFpM8cZuUoa/hVAbO6/Q6UiO38mZWkfuYo RcSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature:arc-authentication-results; bh=U7Ubq8/Jyh1ey1rrtfl3/wN13GdA6sB1I92Q3y2e5rc=; b=FfmB3kOHM6xjvdN1UAEnY9pyCPVRyW5H3Ds+UGOHtjZ5gGOXW/TCese9UKRe27pm0S dm34tstKWBfQbyyQBBWa5cQtVbP3F8+oKyv0wKtHAtsIgQGgJ4C5BH8VG3FUN9JUCT+g s2HFjz9/VBHanvQe7HrLfdewMq3mDEgtvMQVcXpAETlgEzNuZrVtNfw7G2/QL80BjtsC ms7RlKjl1tpx4CkRBZD7D/yLuBQVVXTg0wI4lXTAYFDQtComlcOrtu3/XEVwwPt2AMo3 0zU16JeA2FhtQBhJt044hxQSieZwfYIIu5d1A1r3ve5TBH7hjP4u7QPXvdKNLQIs6B74 vNXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kapsi.fi header.s=20161220 header.b=Sbf6GePx; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=iki.fi Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p7-v6si7669147pli.82.2018.09.04.03.14.35; Tue, 04 Sep 2018 03:14:51 -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; dkim=fail header.i=@kapsi.fi header.s=20161220 header.b=Sbf6GePx; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=iki.fi Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727438AbeIDOh4 (ORCPT + 99 others); Tue, 4 Sep 2018 10:37:56 -0400 Received: from mail.kapsi.fi ([91.232.154.25]:49057 "EHLO mail.kapsi.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727104AbeIDOhz (ORCPT ); Tue, 4 Sep 2018 10:37:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kapsi.fi; s=20161220; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References :In-Reply-To:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=U7Ubq8/Jyh1ey1rrtfl3/wN13GdA6sB1I92Q3y2e5rc=; b=Sbf6GePx8iqOUUD2LGL8qvFNQj E7eroxIT1jMNFyRrnU/kWHMQ3gELnxW0BzO4VMJG0n9ZRhN7vLAqK8yx+/hPbKUcrNv8xb7+DZQfb uW7CR08dKesA0O0uziLj5gJXac5zErxVNv0nY8UnXxuWSOE7J7vVtTEKwDuvsqVwnID6BoeuajXQ4 dic/t1rdQ6WCRrGRtnGh6c4O752A44A1eEcdOh7jwO9Rb5ua0IEPqqy5w/INIfiaDOKF/FMSw2Qcd hKGPBgsEN4err+ZbS1n5++Je6xHTfcO8NZXML6Y4ofyNhKV8KfWTeWEgoLPc1sb+2rkZJhPTXxTE8 65PSZrGg==; Received: from [2001:708:30:1450:fc8b:6ffb:95c6:39ee] (helo=localhost) by mail.kapsi.fi with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1fx8Kt-0002bl-IH; Tue, 04 Sep 2018 13:13:27 +0300 Date: Tue, 4 Sep 2018 13:13:27 +0300 From: Aapo Vienamo To: YueHaibing Cc: , , Subject: Re: [PATCH] mmc: tegra: fix inconsistent IS_ERR and PTR_ERR Message-ID: <20180904131327.1cb5b7b5@iki.fi> In-Reply-To: <20180904025909.13700-1-yuehaibing@huawei.com> References: <20180904025909.13700-1-yuehaibing@huawei.com> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 2001:708:30:1450:fc8b:6ffb:95c6:39ee X-SA-Exim-Mail-From: aapo.vienamo@iki.fi X-SA-Exim-Scanned: No (on mail.kapsi.fi); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 4 Sep 2018 10:59:09 +0800 YueHaibing wrote: > 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 Reviewed-by: Aapo Vienamo > --- > 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; > } >