提交 50aec3b5 编写于 作者: R Russell King 提交者: Russell King

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

Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
上级 1624f003
...@@ -2299,9 +2299,7 @@ static int __init find_port(struct uart_port *p) ...@@ -2299,9 +2299,7 @@ static int __init find_port(struct uart_port *p)
for (line = 0; line < UART_NR; line++) { for (line = 0; line < UART_NR; line++) {
port = &serial8250_ports[line].port; port = &serial8250_ports[line].port;
if (p->iotype == port->iotype && if (uart_match_port(p, port))
p->iobase == port->iobase &&
p->membase == port->membase)
return line; return line;
} }
return -ENODEV; return -ENODEV;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册