Skip to content

Commit

Permalink
[SERIAL] Use uart_match_port() to find a matching port in find_port()
Browse files Browse the repository at this point in the history
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Russell King authored and Russell King committed Jan 4, 2006
1 parent 1624f00 commit 50aec3b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/serial/8250.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 50aec3b

Please sign in to comment.