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: 12606957 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 64E08C433F5 for ; Sun, 7 Nov 2021 18:59:00 +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 CD62C61360 for ; Sun, 7 Nov 2021 18:58:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org CD62C61360 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=C8ZWsOsIYC1Ywp7nYcFOB9gFhmd6gwVr0WSTLB/TkrU=; b=JYQ4ykcY0jfO2A ntgL6k1Uqu9UPVE63mh7NoyUfnH6QDkfXMmg9PT4Xv3gcojmjNBoFb13H6l9PdXC54FIWaBKxRbRd C/Le9x+BeGo9QT7LX2T/83HXuHyawPzRNaLVl4F+LUh7Fp4idgaWtFzuaXoODC41IsDbuyQ5je+Gu zGWkz51hOilhocqwr6aL/Co03zCSsx97SVdGqnnv+WS7FAKJ5J52Ifj2kzjw58y8z3ucfYH7DGIjY 4fQXbiXzhb3xp0O8NlpHskJw0SbVIA7Quj1jLK3bw7OzoqfyjHyQ3aRdLgDLOx7nU1jQ8pIHfQxO4 +ZLLP3xxk4/AIN2eisdg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mjnNb-00EjX3-9i; Sun, 07 Nov 2021 18:58:59 +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-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=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);