tty/serial: st-asc: drop the use of IRQF_NO_SUSPEND
authorSudeep Holla <sudeep.holla@arm.com>
Mon, 21 Sep 2015 15:47:06 +0000 (16:47 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 Oct 2015 18:11:05 +0000 (19:11 +0100)
These drivers doesn't claim the serial device to be wakeup source. Even
if it is, it needs to use enable_irq_wake or other related PM wakeup
APIs to enable it.

This patch removes yet another misuse of IRQF_NO_SUSPEND.

Cc: Srinivas Kandagatla <srinivas.kandagatla@gmail.com>
Cc: Maxime Coquelin <maxime.coquelin@st.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: linux-arm-kernel@lists.infradead.org
Cc: kernel@stlinux.com
Cc: linux-serial@vger.kernel.org
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/st-asc.c
drivers/tty/serial/stm32-usart.c

index d625664ce1b51eea836775d800eded58140fb5ee..2d78cb3627aef9da5e0593d0da38810fc09977c5 100644 (file)
@@ -430,7 +430,7 @@ static void asc_break_ctl(struct uart_port *port, int break_state)
  */
 static int asc_startup(struct uart_port *port)
 {
-       if (request_irq(port->irq, asc_interrupt, IRQF_NO_SUSPEND,
+       if (request_irq(port->irq, asc_interrupt, 0,
                        asc_port_name(port), port)) {
                dev_err(port->dev, "cannot allocate irq.\n");
                return -ENODEV;
index e3de9c6d22265746ea1b34ffa822b0a381898b19..f89d1f79be18fffd199f902d5cc8fa3936d0b815 100644 (file)
@@ -322,8 +322,7 @@ static int stm32_startup(struct uart_port *port)
        u32 val;
        int ret;
 
-       ret = request_irq(port->irq, stm32_interrupt, IRQF_NO_SUSPEND,
-                         name, port);
+       ret = request_irq(port->irq, stm32_interrupt, 0, name, port);
        if (ret)
                return ret;