Received: by 10.213.65.68 with SMTP id h4csp244671imn; Fri, 23 Mar 2018 03:48:10 -0700 (PDT) X-Google-Smtp-Source: AG47ELtAHRpmTcB7FjC4sF1VKnOotYAtDc/x7/uN3bDqEWMyDCw65Z00nLrsFZW+cpNcg3Q0QkLq X-Received: by 2002:a17:902:ab84:: with SMTP id f4-v6mr29550753plr.239.1521802090005; Fri, 23 Mar 2018 03:48:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521802089; cv=none; d=google.com; s=arc-20160816; b=XMgm2nwAoFPbdMd37p/yVI+PgJTOU5xHkDW86k2z11cw02VRLypYaSRevvq1d3rCnN z1LPozGOJvksiW7TGcX9q7yMwuOVW5SfexJDq+KzV7xy0Kns20WCn4RAXjg8iEaGFuIS HtvBQZXMEXCPKdF1hbPUjtUWooHVuGC07zV8r0Nc7FizRkrzLP4eMi+gKJe0zVE95U7K JJiNbIAwPdCoPL6CaBQf+FQKwXZutQCpx4QWeO6M1qsqKtHOplZqfqxkaQAVLtpvlcBY IbWOpt1MKjJCnhbroZohlgU1L0IPjGi3OXuMt67NaPejA9XAGGMT1d1ABB9v5PJd94HE chJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=TIs+M6jsumjZY+x2PBaL7fgZDua/8Za7dNm+p2EAZM0=; b=waAk2Vs965h2dBqZaBhzZbp57QTMMkxDhl6b/fLNeKItflqkdt+XH6Ir1Qv3vyfquO UXp9wSIE+zKspp4kvz6iNkJV9dcWLgEm6kILMx733ohKImwF29wp2wmuOjKuG+5vTLjx bzL2OtONakh/IYIIpitvKVhctCiKDf8BihLuExrSGjvWQBl4tFH+AgTEHNw+RGSjxX30 3tzIUgL8rlE4QaKhK143re0zvxRmBhJzEFrDq3vZmf9jchjtwDKakJIrC5tRoMm5DpQW 34ZGFxsgOrbdgPTF6iUqNsa50h3FA/UT7I30TT6cFoL1ny8okBaGEuOaNKvIqJMFWbcb IfJQ== 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 v21si5812777pgc.569.2018.03.23.03.47.55; Fri, 23 Mar 2018 03:48:09 -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 S1754917AbeCWKqk (ORCPT + 99 others); Fri, 23 Mar 2018 06:46:40 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:45588 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933448AbeCWKPS (ORCPT ); Fri, 23 Mar 2018 06:15:18 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 8F7441287; Fri, 23 Mar 2018 10:15:17 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dan Carpenter , Kishon Vijay Abraham I , Ulf Hansson , Sasha Levin Subject: [PATCH 4.4 40/97] mmc: host: omap_hsmmc: checking for NULL instead of IS_ERR() Date: Fri, 23 Mar 2018 10:54:27 +0100 Message-Id: <20180323094159.899305130@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180323094157.535925724@linuxfoundation.org> References: <20180323094157.535925724@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 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 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Dan Carpenter [ Upstream commit ec5ab8933772c87f24ad62a4a602fe8949f423c2 ] devm_pinctrl_get() returns error pointers, it never returns NULL. Fixes: 455e5cd6f736 ("mmc: omap_hsmmc: Pin remux workaround to support SDIO interrupt on AM335x") Signed-off-by: Dan Carpenter Reviewed-by: Kishon Vijay Abraham I Signed-off-by: Ulf Hansson Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/mmc/host/omap_hsmmc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/drivers/mmc/host/omap_hsmmc.c +++ b/drivers/mmc/host/omap_hsmmc.c @@ -1776,8 +1776,8 @@ static int omap_hsmmc_configure_wake_irq */ if (host->pdata->controller_flags & OMAP_HSMMC_SWAKEUP_MISSING) { struct pinctrl *p = devm_pinctrl_get(host->dev); - if (!p) { - ret = -ENODEV; + if (IS_ERR(p)) { + ret = PTR_ERR(p); goto err_free_irq; } if (IS_ERR(pinctrl_lookup_state(p, PINCTRL_STATE_DEFAULT))) {