aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2017-08-13 17:47:40 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-08-28 20:51:19 +0200
commit7b8a0353f39d579a654d5920e656f2f91006b6c1 (patch)
treeb3e484f08beee9771d10617aaa85c651ea863acc /drivers/tty
parentserial: fsl_lpuart: Avoid using irq_wake flag (diff)
downloadlinux-dev-7b8a0353f39d579a654d5920e656f2f91006b6c1.tar.xz
linux-dev-7b8a0353f39d579a654d5920e656f2f91006b6c1.zip
serial: st-asc: 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: Patrice Chotard <patrice.chotard@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/tty')
-rw-r--r--drivers/tty/serial/st-asc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/st-asc.c b/drivers/tty/serial/st-asc.c
index 6b0ca65027d0..b313a792b149 100644
--- a/drivers/tty/serial/st-asc.c
+++ b/drivers/tty/serial/st-asc.c
@@ -310,7 +310,7 @@ static void asc_receive_chars(struct uart_port *port)
if (mode == ASC_CTL_MODE_8BIT || mode == ASC_CTL_MODE_8BIT_PAR)
ignore_pe = true;
- if (port->irq_wake)
+ if (irqd_is_wakeup_set(irq_get_irq_data(port->irq)))
pm_wakeup_event(tport->tty->dev, 0);
while ((status = asc_in(port, ASC_STA)) & ASC_STA_RBF) {