serial: stm32: fix the get_irq error case
authorErwan Le Ray <erwan.leray@st.com>
Tue, 21 May 2019 15:45:47 +0000 (17:45 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 May 2019 07:58:29 +0000 (09:58 +0200)
commit2c58e56096dd011ea43f29a032d19b0e76fe2570
treee9db1a2ddad8c056de380dd6f21d671770ea2555
parent5297f274e8b61ceb9676cba6649d3de9d03387ad
serial: stm32: fix the get_irq error case

Checks the returned values of platform_get_irq() for both required
"event" and optional "wakeup" IRQs during probe. This allows the driver
probe to be deferred if needed.
Removes redundant checks for 'cfg.has_wakeup'.

Signed-off-by: Fabien Dessenne <fabien.dessenne@st.com>
Signed-off-by: Erwan Le Ray <erwan.leray@st.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/stm32-usart.c