Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp8656877ybn; Tue, 1 Oct 2019 11:12:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqwcpvex29lNzLsNjPqE9zexq5curLrDB0/tD0rcNMBB2b+2dF12jyM8xa3ebPf93n/C67hG X-Received: by 2002:a17:907:2118:: with SMTP id qn24mr25123484ejb.81.1569953571532; Tue, 01 Oct 2019 11:12:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569953571; cv=none; d=google.com; s=arc-20160816; b=QjYcdfrwa0yPxVhfN4xOqCAe73L51gFbURqAlk8h22DVVK/ul0KWzr5wA6PUc6IYAq zlyZr4Lu8l0gIIyiDIYQf3yd+uxmfmloBi16LHMKK/nGwrIwUIhCghdMkWz+16KI0QoR sAh1fbq3fyqIusmkQI0U8AA+08v3NBWypKnvHwYa4/2llRvAqgK2xGl3Kw2Z95d9E81N gUQRCwRj9kbpOejsQgc2Som/heUXPkiaK88PGDPGu/Y1SZFiBkIUMBc2Q49LvbMz5YGT EzCe8Q6//JSLaZyVwI+0hNnyJddsXRAmTbe6/UNHZ2HgF3Idg2mqONSUrqoCtSc0BDA5 /yhA== 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; bh=uqGI6mN9CWXSH0o0E4HTTLoESUrKvoRdyRU10wAPTy4=; b=BQZT4RcY5ZVJ1fYCOTeZbZyqM6RpfMgBurH8d4s5g84SbEY7ECGyDiL35Ji3OvPTo+ vN16evoMCL51mn3awqUhWQ5WEEUIuvAula6hdlE86sq85hGAPcf/ty0N/2Vo3/MzlAGb 77QeXg704gmSzAY+N/p/fbHfXArhclqJ6u/gki4jzefBV7ehliFGncQ9M1z63MYllaPf xfyHppsH3H82aCagO89KvViAD5NlRL1xIcgvjTbIYdN53H92vdlPYxpx59EU107Wd6z7 HY5dbgPVU71BGzzoxzl0og5GL0Fj0/zp/EHH5xbtIxIk5je3qcR6gwDDxO5cFyxceG7I NO3g== 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 i3si9241426edq.163.2019.10.01.11.12.26; Tue, 01 Oct 2019 11:12:51 -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 S1731451AbfJASLN (ORCPT + 99 others); Tue, 1 Oct 2019 14:11:13 -0400 Received: from andre.telenet-ops.be ([195.130.132.53]:46620 "EHLO andre.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727345AbfJASLN (ORCPT ); Tue, 1 Oct 2019 14:11:13 -0400 Received: from ramsan ([84.194.98.4]) by andre.telenet-ops.be with bizsmtp id 8JBA2100705gfCL01JBAMM; Tue, 01 Oct 2019 20:11:11 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan with esmtp (Exim 4.90_1) (envelope-from ) id 1iFMcA-0008Mo-C6; Tue, 01 Oct 2019 20:11:10 +0200 Received: from geert by rox.of.borg with local (Exim 4.90_1) (envelope-from ) id 1iFMcA-0000Md-Ab; Tue, 01 Oct 2019 20:11:10 +0200 From: Geert Uytterhoeven To: Yoshihiro Shimoda , Kishon Vijay Abraham I , Greg Kroah-Hartman Cc: Stephen Boyd , linux-renesas-soc@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH] phy: renesas: rcar-gen3-usb2: Use platform_get_irq_optional() for optional irq Date: Tue, 1 Oct 2019 20:11:09 +0200 Message-Id: <20191001181109.1355-1-geert+renesas@glider.be> 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 As platform_get_irq() now prints an error when the interrupt does not exist, a scary warning may be printed for an optional interrupt: phy_rcar_gen3_usb2 ee0a0200.usb-phy: IRQ index 0 not found Fix this by calling platform_get_irq_optional() instead. Fixes: 7723f4c5ecdb8d83 ("driver core: platform: Add an error message to platform_get_irq*()") Signed-off-by: Geert Uytterhoeven --- This is a fix for v5.4-rc1. --- drivers/phy/renesas/phy-rcar-gen3-usb2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/phy/renesas/phy-rcar-gen3-usb2.c b/drivers/phy/renesas/phy-rcar-gen3-usb2.c index b7f6b132439521ea..49ec67d46ccc5a37 100644 --- a/drivers/phy/renesas/phy-rcar-gen3-usb2.c +++ b/drivers/phy/renesas/phy-rcar-gen3-usb2.c @@ -614,7 +614,7 @@ static int rcar_gen3_phy_usb2_probe(struct platform_device *pdev) return PTR_ERR(channel->base); /* call request_irq for OTG */ - irq = platform_get_irq(pdev, 0); + irq = platform_get_irq_optional(pdev, 0); if (irq >= 0) { INIT_WORK(&channel->work, rcar_gen3_phy_usb2_work); irq = devm_request_irq(dev, irq, rcar_gen3_phy_usb2_irq, -- 2.17.1