projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1624f00
)
[SERIAL] Use uart_match_port() to find a matching port in find_port()
author
Russell King
<rmk@dyn-67.arm.linux.org.uk>
Wed, 4 Jan 2006 18:13:03 +0000
(18:13 +0000)
committer
Russell King
<rmk+kernel@arm.linux.org.uk>
Wed, 4 Jan 2006 18:13:03 +0000
(18:13 +0000)
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/serial/8250.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/serial/8250.c
b/drivers/serial/8250.c
index 076bf848e4d170d176f376ed1d392b9f7c9dc517..ad20d2dd85d74e301045bb6737db167ac77b2dd3 100644
(file)
--- a/
drivers/serial/8250.c
+++ b/
drivers/serial/8250.c
@@
-2299,9
+2299,7
@@
static int __init find_port(struct uart_port *p)
for (line = 0; line < UART_NR; line++) {
port = &serial8250_ports[line].port;
- if (p->iotype == port->iotype &&
- p->iobase == port->iobase &&
- p->membase == port->membase)
+ if (uart_match_port(p, port))
return line;
}
return -ENODEV;