[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20211107185836.2540901-1-megous@megous.com>
Date: Sun, 7 Nov 2021 19:58:35 +0100
From: Ondrej Jirman <megous@...ous.com>
To: Kishon Vijay Abraham I <kishon@...com>,
Vinod Koul <vkoul@...nel.org>,
Heiko Stuebner <heiko@...ech.de>,
Peter Geis <pgwipeout@...il.com>,
Ondrej Jirman <megous@...ous.com>,
Julia Lawall <julia.lawall@...ia.fr>,
kernel test robot <lkp@...el.com>,
Tobias Schramm <t.schramm@...jaro.org>,
linux-phy@...ts.infradead.org (open list:GENERIC PHY FRAMEWORK),
linux-arm-kernel@...ts.infradead.org (moderated list:ARM/Rockchip SoC
support),
linux-rockchip@...ts.infradead.org (open list:ARM/Rockchip SoC support),
linux-kernel@...r.kernel.org (open list)
Subject: phy: rockchip-inno-usb2: Don't print useless error
The interrupt is optional, make the dmesg not complain about it
missing.
Signed-off-by: Ondrej Jirman <megous@...ous.com>
---
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);
--
2.33.1
Powered by blists - more mailing lists