Holger Assmann fdf16d7894 serial: stm32: avoid kernel warning on absence of optional IRQ
stm32_init_port() of the stm32-usart may trigger a warning in
platform_get_irq() when the device tree specifies no wakeup interrupt.

The wakeup interrupt is usually a board-specific GPIO and the driver
functions correctly in its absence. The mainline stm32mp151.dtsi does
not specify it, so all mainline device trees trigger an unnecessary
kernel warning. Use of platform_get_irq_optional() avoids this.

Fixes: 2c58e56096dd ("serial: stm32: fix the get_irq error case")
Signed-off-by: Holger Assmann <h.assmann@pengutronix.de>
Cc: stable <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20200813152757.32751-1-h.assmann@pengutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-08-18 13:32:28 +02:00
..
2020-01-29 10:13:27 -08:00
2020-07-20 09:39:11 +02:00
2020-05-15 12:22:19 +02:00
2020-01-29 10:13:27 -08:00
2019-12-18 15:04:57 +01:00
2020-07-21 20:04:54 +02:00
2020-07-27 12:40:56 +02:00
2020-04-16 16:13:34 +02:00
2020-02-08 14:04:19 -08:00
2020-01-29 10:13:27 -08:00