Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 50aec3b5 authored by Russell King's avatar Russell King Committed by Russell King
Browse files

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

parent 1624f003
Loading
Loading
Loading
Loading
+1 −3
Original line number Original line Diff line number Diff line
@@ -2299,9 +2299,7 @@ static int __init find_port(struct uart_port *p)


	for (line = 0; line < UART_NR; line++) {
	for (line = 0; line < UART_NR; line++) {
		port = &serial8250_ports[line].port;
		port = &serial8250_ports[line].port;
		if (p->iotype == port->iotype &&
		if (uart_match_port(p, port))
		    p->iobase == port->iobase &&
		    p->membase == port->membase)
			return line;
			return line;
	}
	}
	return -ENODEV;
	return -ENODEV;