projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2422084
)
serial: amba-pl010: fix set_ldisc
author
Mika Westerberg
<
[email protected]
>
Sat, 4 Sep 2010 07:23:23 +0000
(10:23 +0300)
committer
Greg Kroah-Hartman
<
[email protected]
>
Mon, 20 Sep 2010 23:30:00 +0000
(16:30 -0700)
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 <
[email protected]
>
Cc: Alan Cox <
[email protected]
>
Cc: Russell King <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/serial/amba-pl010.c
patch
|
blob
|
history
diff --git
a/drivers/serial/amba-pl010.c
b/drivers/serial/amba-pl010.c
index 50441ffe8e3856592dbfdae368e9891b64078d50..2904aa044126dbc49729caacbcb3d236da900bc6 100644
(file)
--- a/
drivers/serial/amba-pl010.c
+++ b/
drivers/serial/amba-pl010.c
@@
-472,14
+472,9
@@
pl010_set_termios(struct uart_port *port, struct ktermios *termios,
spin_unlock_irqrestore(&uap->port.lock, flags);
}
-static void pl010_set_ldisc(struct uart_port *port)
+static void pl010_set_ldisc(struct uart_port *port
, int new
)
{
- int line = port->line;
-
- if (line >= port->state->port.tty->driver->num)
- return;
-
- if (port->state->port.tty->ldisc->ops->num == N_PPS) {
+ if (new == N_PPS) {
port->flags |= UPF_HARDPPS_CD;
pl010_enable_ms(port);
} else