Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4805055ybl; Tue, 4 Feb 2020 02:15:06 -0800 (PST) X-Google-Smtp-Source: APXvYqwTtWjl8M4ILharjORfs7QGdJtgRal8eY9drRXwigrdCi0VVJaPEOCIluNwO7GvJ/vU2uIk X-Received: by 2002:a54:4f14:: with SMTP id e20mr2834337oiy.84.1580811306726; Tue, 04 Feb 2020 02:15:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580811306; cv=none; d=google.com; s=arc-20160816; b=jPm7STtFPM5uFiaT+B0RYSYJq2Ix7dJPg2EuptAg9zYJGVAf242IXb9KQ6JPNkw2nq eT/0PP0Bb0xsoMu8GpMh8TvILEwjl29u7b+lB/3a26+YzYj42NTNY2i/8b0pz9t0PQFo vdqNhT6Eh24DBw3svcQqww89xz2TQQUn3usBfDRsEiogU8E7FMgn3hp6nqdsHaIstnG/ BbKOkECRmpneeLOJmfo8kkmItgj84a11hyv/s2wPU6d1N49ZfA4ECp4KTh9BWAqUwS+I X24S+NDFOcVf8/bjcIGFjGbz5/uJnRYZlvQIeVzqwA56lsIVDSbhCY43IY8TofB1L4Ag fXUw== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=/OmUGIvaQb9Uv8wXS+U/nOoZbtIeQjrWvcPoE8LQKys=; b=OQbding6DzhwwBr9AW7zJEKs05jhyU2oWb47VDmA/0MamL3d+1lO3oO3O0386kkJY6 pthtV9NuNHcT6ULmJkANx9rQP7c8Lqy7EtjBoaJWTXGIkwqritlo0N5ttYmXFWQYWhyL pDoY6VKJE1e3oxwS7+8riI+JYWbu0dfxDjtB21hloKnKxNO9f/WJ2x9Eh8Nep+4/94lN w9Ql3JN3b3GlFBpX56NkccCWGku/PN/yfTvOMyt554weoPvLX0KMijXFKVY0uGVDBEQQ Au+YpW09rANn6ZPqTVu1qi1wAIB5NaxdGMYh8S4Z+sRw0xceRGMjOPe4dwp8nq6kidFJ kUGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=lE90fGNe; 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 p13si11502686otq.210.2020.02.04.02.14.54; Tue, 04 Feb 2020 02:15:06 -0800 (PST) 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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=lE90fGNe; 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 S1726741AbgBDKN5 (ORCPT + 99 others); Tue, 4 Feb 2020 05:13:57 -0500 Received: from mail-qk1-f194.google.com ([209.85.222.194]:33504 "EHLO mail-qk1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726479AbgBDKN5 (ORCPT ); Tue, 4 Feb 2020 05:13:57 -0500 Received: by mail-qk1-f194.google.com with SMTP id h4so6460707qkm.0 for ; Tue, 04 Feb 2020 02:13:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=/OmUGIvaQb9Uv8wXS+U/nOoZbtIeQjrWvcPoE8LQKys=; b=lE90fGNeNZlYffihiymjp+CIVPE140qXhzVNDlD4CY96NdUDGVla63HH1RTMeVSPOt zdGxZy2fYPolO84vJF4pkzKp6qFU8ePFuemyyhHq0eBXtFQTXw3va7tniDmy6WRySrnk /J2Ll36rovMpTkJamgbEMjqyR5vjeh2N+tQU3xiMqtqZW68LLdOm/bQSax4VsVuflzxc JstrrJqs3ajDW2A4Cwq/73VhrU0SvZyrdxiY9sk+EZhcCd54XkddB8ODe5g5ohcf3SRm 7N/e2uBo7CAT6b0TGfOIBJ7zjZeS86AKmwyh3FE2V1Q6dRe/XL0GJYqrdG16wiRUpidx T8hQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=/OmUGIvaQb9Uv8wXS+U/nOoZbtIeQjrWvcPoE8LQKys=; b=fQ3MtRMwUAIcEw8i82w6+CemFRSdYitASE/6dOuuuCKBJHF7hReuDf/NIPJyMCQCab O4OhzFAUNcmUrDzxNrlZelSazaxDI19uI7gi20NZY1xcQQSc89dndrjH0S6Bcxb4MgT8 MO+cXySEerb1w+rNKhggcsor+mAI6EsJzkkhtkOjNu21+qcIjfuljDMOtqyISTNvCv8r FMEqM4P62aA2U4swlA1se7LgmbfrmGMPvQJ1HJAf4QEpts3/wmeHviATeUi0aIKH0Pvh Z5gJkn2aBu5dis1bhsQoygUVYud8+YlLFoerukjp30QvV2ojzfjc3Nn8dxKJYx0ZOfQf 8CWg== X-Gm-Message-State: APjAAAWVSRXkWPxPWtdL8FddEhHnm9ht2a3zvPS8bpsYeZxhZs8HN4iE iIj8x/Yfhztv6HwxkCiTwf7QJT6ckeKC3tupQ3o4iQ== X-Received: by 2002:a05:620a:11ba:: with SMTP id c26mr27339140qkk.323.1580811235278; Tue, 04 Feb 2020 02:13:55 -0800 (PST) MIME-Version: 1.0 References: <20200128210845.332679-1-lkundrak@v3.sk> In-Reply-To: <20200128210845.332679-1-lkundrak@v3.sk> From: Bartosz Golaszewski Date: Tue, 4 Feb 2020 11:13:44 +0100 Message-ID: Subject: Re: [PATCH] gpio: pxa: Avoid a warning when gpio0 and gpio1 IRQS are not there To: Lubomir Rintel Cc: Robert Jarzmik , Linus Walleij , linux-gpio , LKML Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org wt., 28 sty 2020 o 22:08 Lubomir Rintel napisa=C5=82(a): > > Not all platforms use those. Let's use > platform_get_irq_byname_optional() instead platform_get_irq_byname() so > that we avoid a useless warning: > > [ 1.359455] pxa-gpio d4019000.gpio: IRQ gpio0 not found > [ 1.359583] pxa-gpio d4019000.gpio: IRQ gpio1 not found > > Signed-off-by: Lubomir Rintel > --- > drivers/gpio/gpio-pxa.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/gpio/gpio-pxa.c b/drivers/gpio/gpio-pxa.c > index 9888b62f37afb..567742d962aef 100644 > --- a/drivers/gpio/gpio-pxa.c > +++ b/drivers/gpio/gpio-pxa.c > @@ -652,8 +652,8 @@ static int pxa_gpio_probe(struct platform_device *pde= v) > if (!pchip->irqdomain) > return -ENOMEM; > > - irq0 =3D platform_get_irq_byname(pdev, "gpio0"); > - irq1 =3D platform_get_irq_byname(pdev, "gpio1"); > + irq0 =3D platform_get_irq_byname_optional(pdev, "gpio0"); > + irq1 =3D platform_get_irq_byname_optional(pdev, "gpio1"); > irq_mux =3D platform_get_irq_byname(pdev, "gpio_mux"); > if ((irq0 > 0 && irq1 <=3D 0) || (irq0 <=3D 0 && irq1 > 0) > || (irq_mux <=3D 0)) > -- > 2.24.1 > Patch applied. Thanks! Bartosz