summaryrefslogtreecommitdiff
path: root/drivers/tty
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2020-07-31 15:37:32 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-07-31 21:22:06 +0300
commit679193b7baf8d88e41cbeb397ca17f797654947d (patch)
treed4f1a6745b092827b25b1f65078456d0045d1cb6 /drivers/tty
parentf3af1b68fc96b14b93d1013ce7965723dc53ebbc (diff)
downloadlinux-679193b7baf8d88e41cbeb397ca17f797654947d.tar.xz
serial: 8250: Let serial core initialise spin lock
Since the serial core handles spin lock initialisation, let the driver rely on it. Depends-on: f743061a85f5 ("serial: core: Initialise spin lock before use in uart_configure_port()") Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://lore.kernel.org/r/20200731123733.22754-1-andriy.shevchenko@linux.intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty')
-rw-r--r--drivers/tty/serial/8250/8250_port.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/tty/serial/8250/8250_port.c b/drivers/tty/serial/8250/8250_port.c
index 09475695effd..b2d18189d3d9 100644
--- a/drivers/tty/serial/8250/8250_port.c
+++ b/drivers/tty/serial/8250/8250_port.c
@@ -3194,7 +3194,6 @@ void serial8250_init_port(struct uart_8250_port *up)
{
struct uart_port *port = &up->port;
- spin_lock_init(&port->lock);
port->ops = &serial8250_pops;
port->has_sysrq = IS_ENABLED(CONFIG_SERIAL_8250_CONSOLE);