mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
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 <[email protected]> Signed-off-by: Andy Shevchenko <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
3d6bcddf54
commit
7b8a0353f3
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue