Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2630020imm; Tue, 4 Sep 2018 07:36:14 -0700 (PDT) X-Google-Smtp-Source: ANB0Vda7KmHLfMSqRglt0l3WnVVy3S7gU5/cFopbALTTQS052ZiE0ojTJGsU3v3lf6zgQL61NxjA X-Received: by 2002:a63:144b:: with SMTP id 11-v6mr16550546pgu.219.1536071774747; Tue, 04 Sep 2018 07:36:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536071774; cv=none; d=google.com; s=arc-20160816; b=iN91575qIQhe2Df+zg/kgMpAbvkdhRcalAylmOyHXui9au8gN+JYdQlvxHP9TrgksI XpUR5HSvM7iKeAopRvcQDKNP5rrTlgP50x1E4ZumQ2pTLXIg8v89VBGZJAobB5wnUJiA dsJbzl2ePDIfdott6arvldtNn7w9vTrceVJXb1NqNDcvFiLGvZhoRB7rnLAo9oSw3aKa dZ+77oxfn3dLaFHTx0CCPQQR8PNCLTKTB8K+Yc9HIKX9vlqtVQ7IEbmqXQqIax8+GTzn hwKSoHqfiiKhtIT642jiT3I3JvXaXJX6T/mkdnoJb9vnF/eapXYhMs0tRjeY6JTfWZKy uUog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=oW/D9naYHMrpMfgJxVUiEQ9rSnPU2w8v4zhoEmuJ17Y=; b=c1SCl+nHk+UjKJsLc3/lSMssp2a6ejXfbGrlXhZYebdOQWac9uDaCF+zghRFzgri08 8ldsFoq+82zt4rwMhd4n0O0vtwTNTsT2VUdgksZQYpGhVddU/oHufiJjhHVyyJSLIc13 6yZgeN7frQ1RnldqJ+wXuugtyk+4S1RrXBOutQiiJz8uQK1xHXsc49u3FJycLG77A81/ aX6Rd2pEBUzm19h5Q2vfPcjDZbM4+XtBelTwy/2bZJJJ6itBPax+kEITXtGHkZ3DQkTj ioHYrHuDpP9NorV9RCC2l9FniNBZY0zX20xhnhQ1vddEzrga7iKmzd8dNVs5Y7a/i1+c P50w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WrRnEH7m; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 26-v6si22145722pfp.108.2018.09.04.07.35.57; Tue, 04 Sep 2018 07:36:14 -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=pass header.i=@linaro.org header.s=google header.b=WrRnEH7m; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726355AbeIDS76 (ORCPT + 99 others); Tue, 4 Sep 2018 14:59:58 -0400 Received: from mail-it0-f66.google.com ([209.85.214.66]:52140 "EHLO mail-it0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726015AbeIDS76 (ORCPT ); Tue, 4 Sep 2018 14:59:58 -0400 Received: by mail-it0-f66.google.com with SMTP id e14-v6so5280241itf.1 for ; Tue, 04 Sep 2018 07:34:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=oW/D9naYHMrpMfgJxVUiEQ9rSnPU2w8v4zhoEmuJ17Y=; b=WrRnEH7myfd0gr2Fqg2tJ74ijufzUpGLss3Ecja1A0KzHA1aROxodGs9LnLo6xlSa4 XRxyo1OBDkquMNqNsB7+eAXjq78I51XsMp3sA+Z/CUtvrWPZSivVe8ptYP/X2a6Wn90l 1uDH56J7pJILK2Emj4gH2I4M23FEcaB6oVADk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=oW/D9naYHMrpMfgJxVUiEQ9rSnPU2w8v4zhoEmuJ17Y=; b=ArxH32Cny3ux3oxCPEON/Rhoz9ZPk00nMsEeCdFKlfVtkKWDzZZhJg2xu0pOZpJjdO 3eRP7YxTyRSS5tK9M2Gu8NwyA2XE8oY9Om3OGTuOrDQkXEFU7nXFAswq+aZB8LU302KV +iP3NU/GvrLeQzkpVL/Q2nYQLsxVnF/f60UFJxaF3M9IRch3ciRVHuM+8I82xTKfpMo8 gK86EBKJp7GCyWJjw+qg7lIgybYclTpVuoeFiCqeSk8h/GEU1sK+q7mqN5cXVQlF2QtD VWJvfIFJVaAaq4gYGzkRdeN2qIUypy9H0se8J9cPD8b+WuD7abYm4Ow+O+Nwg4qmCTeq lR5g== X-Gm-Message-State: APzg51B9cGEW5lSiKmuBiPij6xZxzcCpmQI5mhM1atqGTxQS/Hls9Iat 7Z9Fh+xLI+C5JxuP0c5YS8rSoCUfjLpxDGXnNhMMTA== X-Received: by 2002:a24:b919:: with SMTP id w25-v6mr425013ite.101.1536071677235; Tue, 04 Sep 2018 07:34:37 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a02:1bd8:0:0:0:0:0 with HTTP; Tue, 4 Sep 2018 07:34:36 -0700 (PDT) In-Reply-To: <20180904025909.13700-1-yuehaibing@huawei.com> References: <20180904025909.13700-1-yuehaibing@huawei.com> From: Ulf Hansson Date: Tue, 4 Sep 2018 16:34:36 +0200 Message-ID: Subject: Re: [PATCH] mmc: tegra: fix inconsistent IS_ERR and PTR_ERR To: YueHaibing Cc: Adrian Hunter , Thierry Reding , Jon Hunter , Linux Kernel Mailing List , "linux-mmc@vger.kernel.org" , linux-tegra@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4 September 2018 at 04:59, 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 Thanks, applied for next! 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; > } > > -- > 2.7.0 > >