From patchwork Sun Nov 7 18:58:35 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Ond=C5=99ej_Jirman?= X-Patchwork-Id: 12606951 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8493AC433F5 for ; Sun, 7 Nov 2021 19:00:10 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 43B3C61361 for ; Sun, 7 Nov 2021 19:00:10 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 43B3C61361 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=megous.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=rj7dr0ZN2GHD6U7kPoilongH6LuuMyQSvlua74E1Yww=; b=155q3AqTdAR4t3 884HUy4xlTr1gsXN+cZpdZH8y1D8tGzWcE4eO5lxKwYe4F6EOOPgeZbCcxC4MfNkT0g7OZNaEXgTq aSFFuiwbtFGvJXExsPQ7nmiWJ8C26+CI2WzaMf0KAkJufAPbh577yfrjWmC+7Jh51IgaLWPkadgzJ kkZ4zYXZVktYlqh86UkmfJ5Z5tEQEdK/75Z/8ynLxSJBC7FKxAYM1nZXdd8C2NibzwusLiThBXOca af8hADqo4ciY7OcQgBAf2P2O+NCUtcG8cdfJcnsO9Po5lPNoZsSVTl11m3U7Ynvrh6UFXyD3N5XHn JtEM1zfnaE6XAJ/8Ithg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mjnNS-00EjVT-Bn; Sun, 07 Nov 2021 18:58:50 +0000 Received: from vps.xff.cz ([195.181.215.36]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mjnNN-00EjUQ-TO; Sun, 07 Nov 2021 18:58:47 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megous.com; s=mail; t=1636311517; bh=h4BpOOjQtkAykHCWV6tHGyXVrJ4qCZ6b243KtgEe0Kg=; h=From:To:Subject:Date:From; b=AgrHm1CySmReXI9I5TU3g6AKiUBPH14YllIHhHauS1GksZCqlSuaKw6giQWwfaT+j g0oxZa1PFqMruFOBGJQajN4UCg6WJVzp2Iqpwf6BUkKUBxLTe9ZBWnkZY7buAq5QYs qVkalonlK5F/nwNJZjd7SciJnRxspYVly/CxOcjI= From: Ondrej Jirman To: Kishon Vijay Abraham I , Vinod Koul , Heiko Stuebner , Peter Geis , Ondrej Jirman , Julia Lawall , kernel test robot , Tobias Schramm , linux-phy@lists.infradead.org (open list:GENERIC PHY FRAMEWORK), linux-arm-kernel@lists.infradead.org (moderated list:ARM/Rockchip SoC support), linux-rockchip@lists.infradead.org (open list:ARM/Rockchip SoC support), linux-kernel@vger.kernel.org (open list) Subject: phy: rockchip-inno-usb2: Don't print useless error Date: Sun, 7 Nov 2021 19:58:35 +0100 Message-Id: <20211107185836.2540901-1-megous@megous.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211107_105846_301179_264923AC X-CRM114-Status: UNSURE ( 8.32 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The interrupt is optional, make the dmesg not complain about it missing. Signed-off-by: Ondrej Jirman --- drivers/phy/rockchip/phy-rockchip-inno-usb2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/phy/rockchip/phy-rockchip-inno-usb2.c b/drivers/phy/rockchip/phy-rockchip-inno-usb2.c index 428c2313a9cb2..27820bee04eae 100644 --- a/drivers/phy/rockchip/phy-rockchip-inno-usb2.c +++ b/drivers/phy/rockchip/phy-rockchip-inno-usb2.c @@ -1180,7 +1180,7 @@ static int rockchip_usb2phy_probe(struct platform_device *pdev) phy_cfgs = match->data; rphy->chg_state = USB_CHG_STATE_UNDEFINED; rphy->chg_type = POWER_SUPPLY_TYPE_UNKNOWN; - rphy->irq = platform_get_irq(pdev, 0); + rphy->irq = platform_get_irq_optional(pdev, 0); platform_set_drvdata(pdev, rphy); ret = rockchip_usb2phy_extcon_register(rphy);