mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
serial: txx9: Drop usage of uart_match_port()
Where the uart_match_port() function is used it's known that .iotype is UPIO_PORT. So uart_match_port() is equivalent to comparing .iobase. Remove the call to uart_match_port() which then only has a single caller that is handled in the next commit. Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp> Link: https://patch.msgid.link/b9287ba4b13b32a11765c0532db5d34843227373.1786697789.git.u.kleine-koenig@baylibre.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
22c6a6ac74
commit
32ba8093a8
|
|
@ -965,7 +965,12 @@ static int serial_txx9_register_port(struct uart_port *port)
|
|||
mutex_lock(&serial_txx9_mutex);
|
||||
for (i = 0; i < UART_NR; i++) {
|
||||
uart = &serial_txx9_ports[i];
|
||||
if (uart_match_port(uart, port)) {
|
||||
/*
|
||||
* serial_txx9_register_port() is only called from
|
||||
* pciserial_txx9_init_one(). So .iotype is UPIO_PORT and
|
||||
* comparing .iobase serves to distinguish ports.
|
||||
*/
|
||||
if (uart->iobase == port->iobase) {
|
||||
uart_remove_one_port(&serial_txx9_reg, uart);
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user