diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2006-01-04 13:13:03 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2006-01-04 13:13:03 -0500 |
commit | 50aec3b561de4e435204ad315e5c5ab58ef9feda (patch) | |
tree | dfbd24000670a78ebee7d96d8eab510f2fcd1f9e /drivers/serial/8250.c | |
parent | 1624f003349b49050f42c7d9f5407dfc05efb912 (diff) |
[SERIAL] Use uart_match_port() to find a matching port in find_port()
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'drivers/serial/8250.c')
-rw-r--r-- | drivers/serial/8250.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/serial/8250.c b/drivers/serial/8250.c index 076bf848e4d1..ad20d2dd85d7 100644 --- a/drivers/serial/8250.c +++ b/drivers/serial/8250.c | |||
@@ -2299,9 +2299,7 @@ static int __init find_port(struct uart_port *p) | |||
2299 | 2299 | ||
2300 | for (line = 0; line < UART_NR; line++) { | 2300 | for (line = 0; line < UART_NR; line++) { |
2301 | port = &serial8250_ports[line].port; | 2301 | port = &serial8250_ports[line].port; |
2302 | if (p->iotype == port->iotype && | 2302 | if (uart_match_port(p, port)) |
2303 | p->iobase == port->iobase && | ||
2304 | p->membase == port->membase) | ||
2305 | return line; | 2303 | return line; |
2306 | } | 2304 | } |
2307 | return -ENODEV; | 2305 | return -ENODEV; |