aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/serial/8250.c
diff options
context:
space:
mode:
authorRussell King <rmk@dyn-67.arm.linux.org.uk>2006-01-04 18:13:03 +0000
committerRussell King <rmk+kernel@arm.linux.org.uk>2006-01-04 18:13:03 +0000
commit50aec3b561de4e435204ad315e5c5ab58ef9feda (patch)
treedfbd24000670a78ebee7d96d8eab510f2fcd1f9e /drivers/serial/8250.c
parent1624f003349b49050f42c7d9f5407dfc05efb912 (diff)
downloadkernel_samsung_smdk4412-50aec3b561de4e435204ad315e5c5ab58ef9feda.zip
kernel_samsung_smdk4412-50aec3b561de4e435204ad315e5c5ab58ef9feda.tar.gz
kernel_samsung_smdk4412-50aec3b561de4e435204ad315e5c5ab58ef9feda.tar.bz2
[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.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/serial/8250.c b/drivers/serial/8250.c
index 076bf84..ad20d2d 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;