Commit 476f771cb9b6cd4845dcd18f16a2f03a89ee63fc

Authored by Mika Westerberg
Committed by Greg Kroah-Hartman
1 parent 2422084a94

serial: amba-pl010: fix set_ldisc

Commit d87d9b7d1 ("tty: serial - fix tty referencing in set_ldisc") changed
set_ldisc to take ldisc number as parameter. This patch fixes AMBA PL010 driver
according the new prototype.

Signed-off-by: Mika Westerberg <mika.westerberg@iki.fi>
Cc: Alan Cox <alan@linux.intel.com>
Cc: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

Showing 1 changed file with 2 additions and 7 deletions Side-by-side Diff

drivers/serial/amba-pl010.c
... ... @@ -472,14 +472,9 @@
472 472 spin_unlock_irqrestore(&uap->port.lock, flags);
473 473 }
474 474  
475   -static void pl010_set_ldisc(struct uart_port *port)
  475 +static void pl010_set_ldisc(struct uart_port *port, int new)
476 476 {
477   - int line = port->line;
478   -
479   - if (line >= port->state->port.tty->driver->num)
480   - return;
481   -
482   - if (port->state->port.tty->ldisc->ops->num == N_PPS) {
  477 + if (new == N_PPS) {
483 478 port->flags |= UPF_HARDPPS_CD;
484 479 pl010_enable_ms(port);
485 480 } else