diff mbox series

[2/2] net: ethernet: stmmac: don't warn about missing optional wakeup IRQ

Message ID 20200224172956.28744-2-a.fatoum@pengutronix.de (mailing list archive)
State Mainlined
Commit d87ab44a68a69c83028bb95d4c7ad13fa7e96ffb
Headers show
Series [1/2] net: ethernet: stmmac: demote warnings about missing optional clocks | expand

Commit Message

Ahmad Fatoum Feb. 24, 2020, 5:29 p.m. UTC
The "stm32_pwr_wakeup" is optional per the binding and the driver
handles its absence gracefully. Request it with
platform_get_irq_byname_optional, so its absence doesn't needlessly
clutter the log.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
 drivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

David Miller Feb. 24, 2020, 11:39 p.m. UTC | #1
From: Ahmad Fatoum <a.fatoum@pengutronix.de>
Date: Mon, 24 Feb 2020 18:29:55 +0100

> The "stm32_pwr_wakeup" is optional per the binding and the driver
> handles its absence gracefully. Request it with
> platform_get_irq_byname_optional, so its absence doesn't needlessly
> clutter the log.
> 
> Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>

Applied.
diff mbox series

Patch

diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c
index dc84e5066bf8..b2dc99289687 100644
--- a/drivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c
+++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c
@@ -324,7 +324,7 @@  static int stm32mp1_parse_data(struct stm32_dwmac *dwmac,
 	/* Get IRQ information early to have an ability to ask for deferred
 	 * probe if needed before we went too far with resource allocation.
 	 */
-	dwmac->irq_pwr_wakeup = platform_get_irq_byname(pdev,
+	dwmac->irq_pwr_wakeup = platform_get_irq_byname_optional(pdev,
 							"stm32_pwr_wakeup");
 	if (dwmac->irq_pwr_wakeup == -EPROBE_DEFER)
 		return -EPROBE_DEFER;