Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp195794ybl; Thu, 9 Jan 2020 19:58:09 -0800 (PST) X-Google-Smtp-Source: APXvYqz2k7nrJGU6ef8i1M7cuL69qJ9FmGwmv72GlyNLGbrs4/xggnAaUYzcGIteSZbini73kye6 X-Received: by 2002:aca:dfd5:: with SMTP id w204mr685653oig.95.1578628689554; Thu, 09 Jan 2020 19:58:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578628689; cv=none; d=google.com; s=arc-20160816; b=PC2c5tmU9Z8y1xJGe3GS7wDDjha4R8NoPpGp2L6wjjB3mfTcuRJh9KWFekCYVIOSte vq2s2x5rqxUZUEjaw3fCjo6U45fPCeI3aRw4ArI6v3J+6XLsVwOteocy1F/+qUvlJ400 c3dkN+maLtjzJ1630aee3ZxcFf9TQJqiLU8SqJDM+vGTm6NZ8pL3rhVc+lwrLOQY8Zg/ XeYSqSw/93MsG+f/VpqUPqY42w6893yTx8eCZ4XKHhU0vn0xTwrrl+qIWRAB0iV9Znxz D2aVKqwVaNARTCBlB/v9U/db/Q44MfjYVulIpHzRxN/H/bgdrfOkvmRtP1v1wJoSBFnx iiag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=kxV5SqlkFgP5zhfbsJuuWIogZXN6mvLl8MHissFHHxg=; b=yRnu8qz6/kyVG5nAgpM0vFH02mtElgSjcUYKTsi+7EFhAkmrb1dIVzrypmQZyzOkjb qOVmuO4oGWgO1a+Q6VHcKE2dPlSQVa0pyRNz1dwzNOdKl/XA+w6CwNbjbKoHMXzMmZqH bm/p9X+fESsuKOAyU6TW+5gPZm547N1lytXR1eljksRs97k8x3/vGoTiqX0tcT7J564D aSjEpG5vOeD/Wg0vembL68M5D9ecD30ztVXAPRfXumyTMNU/cV4UGXUfXhg6eNxZgiil nwtKd5CRrEKGzcF8WCxraV8SRQQJVks+XNd7XR0wObv+LMQdFVeBPh63dJ9aw5zMeD+l pv2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=PIFFStt4; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p18si503126otg.61.2020.01.09.19.57.56; Thu, 09 Jan 2020 19:58:09 -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=@broadcom.com header.s=google header.b=PIFFStt4; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731192AbgAJDzk (ORCPT + 99 others); Thu, 9 Jan 2020 22:55:40 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:34869 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731182AbgAJDzj (ORCPT ); Thu, 9 Jan 2020 22:55:39 -0500 Received: by mail-wr1-f68.google.com with SMTP id g17so456266wro.2 for ; Thu, 09 Jan 2020 19:55:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id; bh=kxV5SqlkFgP5zhfbsJuuWIogZXN6mvLl8MHissFHHxg=; b=PIFFStt4M2Cz2Rebcs6yKg3KO/1NffcQ2nsyYGiF3v14UXaVwoRU1JK1x+PnCqCias 74Zj31cQwCO/1M+d7BTwBRHAB4EfVm5qDSnqowwCT+NfnBPsorCxstjYNi4FZ+X5BcOm 3aYiA/2X+XiQCNOGr+aouB2NYaezcDRqlSh3o= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=kxV5SqlkFgP5zhfbsJuuWIogZXN6mvLl8MHissFHHxg=; b=lBZfLR7+7LWI3rDil0O2tlcpY9evfog4CM/2KZMuUorlI0ET3YqYkhAIE0Tqwg1Ual KXiOnwHtsZwclu3g3hxdSaX4MfgG7SbNldEe1Q5lUjQRfj8T24iUntMpmzK7IATLQ/FS EUzES2nV0gNkuk8ioJipFUevzKo7Km0cNf6h/s5yJvVyKJ99Ke9sQBuKGgAD4zgGYJns KW0eGi0UAqwGBHoofUHUlAv+RhgEpjlGgBM1LAksBHQ/RNmz5KzkHtcA7+E0Ci8MD3o+ J/usJrm5+CqXGI5zEZPcTMwZ5T1mRmG5tVh8JcKdmaJjEKGNGkPqhAVuTZdJQg1MwfRk E/YQ== X-Gm-Message-State: APjAAAVXEyxi9b5+zrK4d21jtrz2MCJlyi/jl+JVEMTuOUKw3tidbW1T eEew6jETcP4qXzdQeZsP3tUavA== X-Received: by 2002:a5d:6748:: with SMTP id l8mr952505wrw.188.1578628537787; Thu, 09 Jan 2020 19:55:37 -0800 (PST) Received: from rayagonda.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id e18sm674999wrw.70.2020.01.09.19.55.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jan 2020 19:55:37 -0800 (PST) From: Rayagonda Kokatanur To: Linus Walleij , Ray Jui , Scott Branden , bcm-kernel-feedback-list@broadcom.com, Chris Packham , Li Jin , YueHaibing , linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Rayagonda Kokatanur Subject: [PATCH v1 1/1] pinctrl: iproc: Use platform_get_irq_optional() to avoid error message Date: Fri, 10 Jan 2020 09:25:24 +0530 Message-Id: <20200110035524.23511-1-rayagonda.kokatanur@broadcom.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use platform_get_irq_optional() instead of platform_get_irq() to avoid below error message during probe: [ 0.589121] iproc-gpio 66424800.gpio: IRQ index 0 not found Signed-off-by: Rayagonda Kokatanur --- drivers/pinctrl/bcm/pinctrl-iproc-gpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/bcm/pinctrl-iproc-gpio.c b/drivers/pinctrl/bcm/pinctrl-iproc-gpio.c index 831a9318c384..0d2bdb818d41 100644 --- a/drivers/pinctrl/bcm/pinctrl-iproc-gpio.c +++ b/drivers/pinctrl/bcm/pinctrl-iproc-gpio.c @@ -843,7 +843,7 @@ static int iproc_gpio_probe(struct platform_device *pdev) "gpio-ranges"); /* optional GPIO interrupt support */ - irq = platform_get_irq(pdev, 0); + irq = platform_get_irq_optional(pdev, 0); if (irq > 0) { struct irq_chip *irqc; struct gpio_irq_chip *girq; -- 2.17.1