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:
959801f
)
serial: 8250: Compute ttyS index from port minor
author
Peter Hurley
<
[email protected]
>
Tue, 24 Feb 2015 19:25:01 +0000
(14:25 -0500)
committer
Greg Kroah-Hartman
<
[email protected]
>
Thu, 26 Mar 2015 15:14:27 +0000
(16:14 +0100)
Prepare for 8250 split; calculate the ttyS index directly from
the port minor which avoids the global serial8250_reg reference
from base port operations.
Signed-off-by: Peter Hurley <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/tty/serial/8250/8250_core.c
patch
|
blob
|
history
diff --git
a/drivers/tty/serial/8250/8250_core.c
b/drivers/tty/serial/8250/8250_core.c
index 7b502c0a848feca8f3c63597c07745c05675a284..b7f2d6c0d0039037abe89f79df6a217f5cba6711 100644
(file)
--- a/
drivers/tty/serial/8250/8250_core.c
+++ b/
drivers/tty/serial/8250/8250_core.c
@@
-61,7
+61,7
@@
static struct uart_driver serial8250_reg;
static int serial_index(struct uart_port *port)
{
- return
(serial8250_reg.minor - 64) + port->line
;
+ return
port->minor - 64
;
}
static unsigned int skip_txen_test; /* force skip of txen test at init time */