net: stmmac: platform: Fix misleading interrupt error msg
authorMarkus Fuchs <mklntf@gmail.com>
Fri, 6 Mar 2020 16:38:48 +0000 (17:38 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Apr 2020 08:49:58 +0000 (10:49 +0200)
commitb9c96199856559b3464a045af287b2f835491eba
tree5cab26818d3b87b8cb645dd1332359ce48bbb862
parentf96f2c885eda81f28a0a51d2adf06ff3a0374d79
net: stmmac: platform: Fix misleading interrupt error msg

[ Upstream commit fc191af1bb0d069dc7e981076e8b80af21f1e61d ]

Not every stmmac based platform makes use of the eth_wake_irq or eth_lpi
interrupts. Use the platform_get_irq_byname_optional variant for these
interrupts, so no error message is displayed, if they can't be found.
Rather print an information to hint something might be wrong to assist
debugging on platforms which use these interrupts.

Signed-off-by: Markus Fuchs <mklntf@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c