build/patch/kernel/archive/sunxi-5.15/patches.megous/phy-rockchip-inno-usb2-Don-t-print-useless-error.patch

30 lines
1.1 KiB
Diff

From 5c7856a467254ad4e9db35721826599543075399 Mon Sep 17 00:00:00 2001
From: Ondrej Jirman <megous@megous.com>
Date: Sun, 7 Nov 2021 19:31:55 +0100
Subject: [PATCH 471/478] 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@megous.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 428c2313a9cb..27820bee04ea 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.35.3