Explorar o código

[SERIAL] Use uart_match_port() to find a matching port in find_port()

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Russell King %!s(int64=20) %!d(string=hai) anos
pai
achega
50aec3b561
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  1. 1 3
      drivers/serial/8250.c

+ 1 - 3
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;