Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2757026rwd; Sun, 28 May 2023 23:48:55 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6Pf5sRsm0OWCjF+NMcw+NcHdHK51x9IlbiBcP0Wbt0SzvglwMtX48OsfdS14c8Fk0oF6oE X-Received: by 2002:a17:90a:d181:b0:256:728b:9672 with SMTP id fu1-20020a17090ad18100b00256728b9672mr2512148pjb.22.1685342934994; Sun, 28 May 2023 23:48:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685342934; cv=none; d=google.com; s=arc-20160816; b=0N8FTtjiA1EU8jPkGaJmQWREeOSIIgpoabZcDgQkDYaGg0FTx5fZiAWL7LFP9bFsMI WkoSOUOIdqx+B1P5k430NwvqDQ/Drbwke71/OKUhMmv2ImXZWEHd+Cpt/1l8DqjbqSeO QUlysAKjcLY1RI8N7EnnOfBXSFvKxts32a2/ZnSfpTZlSq88AoKuaHLOpIcoaiWfPiko NbARuuG2HpHqB2PeCR2Iku51npSmhK36CYMCtRKR/FUWJ4MdkBhvPppRA3BqWUkfxVMA QemoUeg3X1C53KpeaL3abbdz1J0W/4NwDY6pVjxi9GWAIHV1YDDzH1P0p12ywQcM/lUY RogQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=w2htrHoUb05zFmZyVZPES7QukPQYRc3jomIeB/klZj4=; b=n320lT6EupE0noXKADIOYnvRwMSH8qqTRbdgaAcL7k4th3u7J7guoQvCs1i/sC4F4W A5rj9GT0ziyVz+UspI776/Y/Okj5/4SDWocluJFOqmP4Gq2p7XJj9FVBgkmWyZlMCrNx cD6XWkBaSzB1+y0Zg8JQV63tv4mUqSHnL8FiOXjYcTKyoTQYIJ5oIkp8IYCWoVPQZF14 qyB/ol4xdvtNhgmcygGDqV3rHqiLL2gE2pbZJ75n7HUasTAZDDGALymUTs59qJ5F1Xo6 vTXq9r7pvzUDoaqJBydfCIe65DvZiKcbkp+t7UL/D2PPN7reAMFImPvZPjyxK3OAXpg4 RtHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=IxHCLBEQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q38-20020a635c26000000b005348885119asi8540127pgb.523.2023.05.28.23.48.42; Sun, 28 May 2023 23:48:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=IxHCLBEQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231617AbjE2GZE (ORCPT + 99 others); Mon, 29 May 2023 02:25:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51458 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231600AbjE2GYR (ORCPT ); Mon, 29 May 2023 02:24:17 -0400 Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B270B120; Sun, 28 May 2023 23:23:45 -0700 (PDT) Received: by mail-lj1-x229.google.com with SMTP id 38308e7fff4ca-2af189d323fso45624371fa.1; Sun, 28 May 2023 23:23:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685341424; x=1687933424; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=w2htrHoUb05zFmZyVZPES7QukPQYRc3jomIeB/klZj4=; b=IxHCLBEQHZEy3VFtdTPnx9aH/KeZUSVVV6J2ZxIGnbc6vzCFZcXnJRaiNvV9bp87IR zPdIC7pG2Has+iX4gz80yNYcIrsYEkyozPgr13tiiEdLJrXVqkgfgyWW/OPQhzawhhPk PDS2T7BMLVOup6Qy3jduIa7Vkxg2OIusXmz9zzSJCDP7enxn9lPJ0EdZ+FQTqaER86Gg nIcVREeVCpEmUL3H330jO9BSlBUdDtFL9zE7gu+ZWhHgglTA1g2wdxxSVlWnDO6vn1QO UglBZjC0xm17V+cKrFTP6Vi0XFSEPvBxGy30o/IGNL9ET8y8mVDX/7F3XJUXbrYspHmH uMsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685341424; x=1687933424; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=w2htrHoUb05zFmZyVZPES7QukPQYRc3jomIeB/klZj4=; b=BX5k2U9SKMCqUw9vNIn8AdG+MYuPjQvXSPV6k52yS2DE376XomO+EjaFZaPyeyjr7M hMMzlJ9yeMhUCPIJq5E3EcC2H32az6nEJKnjZMXTD6TL82znKi6epe91cyDitX6BcwTD hZqEnL//TyTxsg/B77kIbCNJ2iyyOPi1KkygbRB4+VkVnUhCneVEoyu+InZIGWNi0Mnz 9SbxmKuTkQwUp0JSiOVotROuMSLcpeXoe/HLVdhYRKtHY8NtfTUQX9lVcTmMJq++G7Sc KqVEKakzj7ya0a+aVp4jqFlDAhXchAQQ1URnP64cy566onp04eWhw/ghw6g5YMk4cAf2 F2MQ== X-Gm-Message-State: AC+VfDzm/5gW1xM6Et83hAv2SzqRlXxi30x2urYXeOa3TSzSZJJ+/ZiB YDRMTVig22aMTroT1V8GpUA= X-Received: by 2002:a05:6512:2302:b0:4ed:c64a:4aa8 with SMTP id o2-20020a056512230200b004edc64a4aa8mr2821216lfu.6.1685341423888; Sun, 28 May 2023 23:23:43 -0700 (PDT) Received: from fedora (62-78-225-252.bb.dnainternet.fi. [62.78.225.252]) by smtp.gmail.com with ESMTPSA id v3-20020a056512048300b004eb0c18efc2sm1833053lfq.221.2023.05.28.23.23.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 May 2023 23:23:43 -0700 (PDT) Date: Mon, 29 May 2023 09:23:39 +0300 From: Matti Vaittinen To: Matti Vaittinen , Matti Vaittinen Cc: Andy Shevchenko , Daniel Scally , Heikki Krogerus , Sakari Ailus , Greg Kroah-Hartman , "Rafael J. Wysocki" , Wolfram Sang , Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron , Andreas Klinger , Marcin Wojtas , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Jonathan =?iso-8859-1?Q?Neusch=E4fer?= , Linus Walleij , Paul Cercueil , Akhil R , linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, linux-iio@vger.kernel.org, netdev@vger.kernel.org, openbmc@lists.ozlabs.org, linux-gpio@vger.kernel.org, linux-mips@vger.kernel.org Subject: [PATCH v7 5/9] pinctrl: ingenic: relax return value check for IRQ get Message-ID: <2b52e5dcdcc50e2f932184b5816e5f7ce678210a.1685340157.git.mazziesaccount@gmail.com> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="RQYH1ecUNFtPH4cO" Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --RQYH1ecUNFtPH4cO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable fwnode_irq_get[_byname]() were changed to not return 0 anymore. Drop check for return value 0. Signed-off-by: Matti Vaittinen Reviewed-by: Paul Cercueil Acked-by: Linus Walleij Reviewed-by: Jonathan Cameron --- Revision history: - No changes Please note, I took Linus' reply to v4 cover-letter as ack && added the tag. Please let me know if this was not Ok. The first patch of the series changes the fwnode_irq_get() so this depends on the first patch of the series and should not be applied alone. --- drivers/pinctrl/pinctrl-ingenic.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/pinctrl/pinctrl-ingenic.c b/drivers/pinctrl/pinctrl-in= genic.c index 2f220a47b749..86e71ad703a5 100644 --- a/drivers/pinctrl/pinctrl-ingenic.c +++ b/drivers/pinctrl/pinctrl-ingenic.c @@ -4201,8 +4201,6 @@ static int __init ingenic_gpio_probe(struct ingenic_p= inctrl *jzpc, err =3D fwnode_irq_get(fwnode, 0); if (err < 0) return err; - if (!err) - return -EINVAL; jzgc->irq =3D err; =20 girq =3D &jzgc->gc.irq; --=20 2.40.1 --=20 Matti Vaittinen, Linux device drivers ROHM Semiconductors, Finland SWDC Kiviharjunlenkki 1E 90220 OULU FINLAND ~~~ "I don't think so," said Rene Descartes. Just then he vanished ~~~ Simon says - in Latin please. ~~~ "non cogito me" dixit Rene Descarte, deinde evanescavit ~~~ Thanks to Simon Glass for the translation =3D]=20 --RQYH1ecUNFtPH4cO Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEIx+f8wZb28fLKEhTeFA3/03aocUFAmR0ROsACgkQeFA3/03a ocU8vAgAvYKAgRXg4MbPgzQs85PpQLmD3+uJCoxGK0n/DgiV9a4WIzyFLx1gLVmL 1ThzJ9G/Bd6DKF2GK4la1Jwevx9WTi/VwOzwyUZS/9D/3XuXP2YJ8xSME1DWO7mc SglYisrGyU7Z7xpkdMF8RYQPOEYAo0AboMKpvLnQrUNqONt76pZTsfgwqd12F7nc kBWaaShy8GycuttI69xWwYbmNym38lRicAXq5Tsvl+R/Kw5J5teLREbpg/8olt7I W4kr8VlLBWD+ISAFmsLhxZFRtm0c9NjhXNU4SC0ryIjSN0Sxdu7YHo9BhPdnQd0h w7xGT/p55vZWXAZ0SPKP5Qb/nI0JZw== =oXpg -----END PGP SIGNATURE----- --RQYH1ecUNFtPH4cO--