From: Andy Shevchenko Date: Sun, 13 Aug 2017 14:47:41 +0000 (+0300) Subject: serial: stm32-usart: Avoid using irq_wake flag X-Git-Tag: v4.14-rc1~149^2~43 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=29d60981db522ce301e06e18d9edf8b31b233b89;p=platform%2Fkernel%2Flinux-exynos.git 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 Cc: Alexandre Torgue Signed-off-by: Andy Shevchenko Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/serial/stm32-usart.c b/drivers/tty/serial/stm32-usart.c index b16e7e7..03a58326 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)) {