From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 01A78C3F68F for ; Tue, 7 Jan 2020 21:03:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C098E20678 for ; Tue, 7 Jan 2020 21:03:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1578431035; bh=/A8G4m5/CbKB3q8Lhatro960Z/QFZjCCGpHHAiIAzfU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=mbr2N+VNMEqP94Hr1KYxEc01yy20ANKwPnW0t1saMnHM05W1Iqhgx4R8XIUieP5da UyJmFq4dPocPJss6tyAcfXjqIV0AIx4iFR6o9sLlSO/2SO3hV/O3V14N5am0CS6vdg ErfWVfjHDthn6KdI0Uq8qlrkeDX2RwJN5Xe6GHFM= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728982AbgAGVDu (ORCPT ); Tue, 7 Jan 2020 16:03:50 -0500 Received: from mail.kernel.org ([198.145.29.99]:46558 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728974AbgAGVDr (ORCPT ); Tue, 7 Jan 2020 16:03:47 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B5BDB2081E; Tue, 7 Jan 2020 21:03:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1578431027; bh=/A8G4m5/CbKB3q8Lhatro960Z/QFZjCCGpHHAiIAzfU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BGN4sjKO7PFBr17ah4R7ou8QMhPZ5S7WEjcBJ9ClByXBpYNq7w/BWZaAqoAd78gUZ hvIkhiARKLk6eNvj7bK/Dr89sixZPPBmjMZSmgM3Of4yPqwCD03UPT+JxF8gwpIdXl LXzYlMtKW7TBvtOLFalBnmfwx2m+hJLOQy09sV/w= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Stephen Boyd , Yoshihiro Shimoda , Geert Uytterhoeven , Felipe Balbi Subject: [PATCH 5.4 168/191] phy: renesas: rcar-gen3-usb2: Use platform_get_irq_optional() for optional irq Date: Tue, 7 Jan 2020 21:54:48 +0100 Message-Id: <20200107205341.994942891@linuxfoundation.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200107205332.984228665@linuxfoundation.org> References: <20200107205332.984228665@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Geert Uytterhoeven commit b049e03ca57f238e74a79e44ffc85904db465e72 upstream. 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*()") Reviewed-by: Stephen Boyd Reviewed-by: Yoshihiro Shimoda Tested-by: Yoshihiro Shimoda Signed-off-by: Geert Uytterhoeven Signed-off-by: Felipe Balbi Signed-off-by: Greg Kroah-Hartman --- drivers/phy/renesas/phy-rcar-gen3-usb2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/phy/renesas/phy-rcar-gen3-usb2.c +++ b/drivers/phy/renesas/phy-rcar-gen3-usb2.c @@ -615,7 +615,7 @@ static int rcar_gen3_phy_usb2_probe(stru 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,