]> www.infradead.org Git - users/jedix/linux-maple.git/commit
serial: 8250_platform: Remove unneeded ->iotype assignment
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 24 Jan 2025 16:10:50 +0000 (18:10 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 4 Feb 2025 13:44:52 +0000 (14:44 +0100)
commit34bbb5d5137f32be3186a995a5ad4c60aaad11a7
tree9e70a705474733605eee488f551ae5c1562a9aee
parentfe310f75327edbc042c7cc0df32c6b9ec29eb93a
serial: 8250_platform: 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-6-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_platform.c