summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2017-08-13 17:47:41 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-08-28 20:51:19 +0200
commit29d60981db522ce301e06e18d9edf8b31b233b89 (patch)
tree66980b7637f6549cd457dbe9dc0bccb5c04ac122 /drivers
parent7b8a0353f39d579a654d5920e656f2f91006b6c1 (diff)
downloadlinux-29d60981db522ce301e06e18d9edf8b31b233b89.tar.bz2
serial: stm32-usart: Avoid using irq_wake flag
There is no need to duplicate a flag which IRQ core takes care of. Replace custom flag by IRQ core API that retrieves its state. Cc: Maxime Coquelin <mcoquelin.stm32@gmail.com> Cc: Alexandre Torgue <alexandre.torgue@st.com> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/tty/serial/stm32-usart.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/stm32-usart.c b/drivers/tty/serial/stm32-usart.c
index b16e7e796155..03a583264d9e 100644
--- a/drivers/tty/serial/stm32-usart.c
+++ b/drivers/tty/serial/stm32-usart.c
@@ -113,7 +113,7 @@ static void stm32_receive_chars(struct uart_port *port, bool threaded)
u32 sr;
char flag;
- if (port->irq_wake)
+ if (irqd_is_wakeup_set(irq_get_irq_data(port->irq)))
pm_wakeup_event(tport->tty->dev, 0);
while (stm32_pending_rx(port, &sr, &stm32_port->last_res, threaded)) {