diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2022-10-27 01:44:49 +0300 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2022-11-07 07:50:25 +0300 |
commit | 53bffe0055741440a6c91abb80bad1c62ea443e3 (patch) | |
tree | 77798feb61f94cad4ca0ad8f14dc0dbe27cc7322 | |
parent | 5bd78c00d753d4e80e151555565334c475a559d3 (diff) | |
download | linux-53bffe0055741440a6c91abb80bad1c62ea443e3.tar.xz |
phy: phy-brcm-usb: Utilize platform_get_irq_byname_optional()
The wake-up interrupt lines are entirely optional, avoid printing
messages that interrupts were not found by switching to the _optional
variant.
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Acked-by: Justin Chen <justinpopo6@gmail.com>
Link: https://lore.kernel.org/r/20221026224450.2958762-1-f.fainelli@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
-rw-r--r-- | drivers/phy/broadcom/phy-brcm-usb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/phy/broadcom/phy-brcm-usb.c b/drivers/phy/broadcom/phy-brcm-usb.c index aafba4a04701..4de39999f43d 100644 --- a/drivers/phy/broadcom/phy-brcm-usb.c +++ b/drivers/phy/broadcom/phy-brcm-usb.c @@ -446,9 +446,9 @@ static int brcm_usb_phy_dvr_init(struct platform_device *pdev, priv->suspend_clk = NULL; } - priv->wake_irq = platform_get_irq_byname(pdev, "wake"); + priv->wake_irq = platform_get_irq_byname_optional(pdev, "wake"); if (priv->wake_irq < 0) - priv->wake_irq = platform_get_irq_byname(pdev, "wakeup"); + priv->wake_irq = platform_get_irq_byname_optional(pdev, "wakeup"); if (priv->wake_irq >= 0) { err = devm_request_irq(dev, priv->wake_irq, brcm_usb_phy_wake_isr, 0, |