]> www.infradead.org Git - users/jedix/linux-maple.git/commit
serial: 8250_pnp: Remove unneeded ->iotype assignment
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 24 Jan 2025 16:10:51 +0000 (18:10 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 4 Feb 2025 13:44:53 +0000 (14:44 +0100)
commit0f3fd9cf6491f5beecbb65abb41556c56135340c
treefe6987a1c5b5d8f5327849500618eb7a954f8d57
parent34bbb5d5137f32be3186a995a5ad4c60aaad11a7
serial: 8250_pnp: Remove unneeded ->iotype assignment

If ->iobase is set the default will be UPIO_PORT for ->iotype after
the uart_read_and_validate_port_properties() call. Hence no need
to assign that explicitly. Otherwise it will be UPIO_MEM.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20250124161530.398361-7-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_pnp.c