serial: core: Consolidate spin lock initialization code
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 14 Feb 2020 11:43:33 +0000 (13:43 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Feb 2020 16:34:18 +0000 (08:34 -0800)
commitd2403cadc1ee93b9ccf3766e1bc60e7e4d48387b
tree6817d78a9f46a35d33e73a76fb3d3a4344245e92
parent7a49955af1441dd58d27c1ab59205d83ec42907f
serial: core: Consolidate spin lock initialization code

We have two times duplicated excerpt where we initialize spin lock
for UART port. Consolidate it under uart_port_spin_lock_init() helper.

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