You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
[SERIAL] Use uart_match_port() to find a matching port in find_port()
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
committed by
Russell King
parent
1624f00334
commit
50aec3b561
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user