Commit 50aec3b5 authored by Russell King's avatar Russell King Committed by Russell King

[SERIAL] Use uart_match_port() to find a matching port in find_port()

Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 1624f003
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment