From: Russell King Date: Wed, 4 Jan 2006 18:13:03 +0000 (+0000) Subject: [SERIAL] Use uart_match_port() to find a matching port in find_port() X-Git-Tag: v2.6.16-rc1~930^2~3 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=50aec3b561de4e435204ad315e5c5ab58ef9feda;p=linux-2.6 [SERIAL] Use uart_match_port() to find a matching port in find_port() Signed-off-by: Russell King --- diff --git a/drivers/serial/8250.c b/drivers/serial/8250.c index 076bf848e4..ad20d2dd85 100644 --- 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;