]> www.infradead.org Git - users/jedix/linux-maple.git/commit
serial: 8250_platform: Explicitly show we initialise ISA ports only once
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 6 Jun 2024 18:48:41 +0000 (21:48 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Jun 2024 14:10:17 +0000 (16:10 +0200)
commitefa6b0a1d66e189fa13e75f704dd8ee5948a3cd3
tree51cac688b41af398135d3e95e633b773c3391839
parentf0a17485cc2c6984381bac5c10e3564675dcbea5
serial: 8250_platform: Explicitly show we initialise ISA ports only once

serial8250_isa_init_ports() uses home grown approach to make itself
a singleton. Instead, explicitly show that we initialise ISA ports
once by providing a helper function which calls the original function
via DO_ONCE() macro.

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