diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2020-07-11 16:53:42 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-07-21 19:21:49 +0300 |
commit | 30336ef6f13e41097dd26c8e693ba75e802fcb21 (patch) | |
tree | 101a5335c3b235d8cc677c9966c4bf9e01109db2 /drivers/tty/serial/sunhv.c | |
parent | 6f2c6599ba70da7ca9603f8026c4e3cdc273ee02 (diff) | |
download | linux-30336ef6f13e41097dd26c8e693ba75e802fcb21.tar.xz |
Revert "serial: sunhv: Initialize lock for non-registered console"
This reverts commit 0f87aa66e8c314f95c00eeff978c8a0b41e05d50.
There has been a quick fix against uninitialised lock revealed by
the commit f743061a85f5 ("serial: core: Initialise spin lock before use
in uart_configure_port()"). Since we have now better fix in serial core,
this may be safely reverted.
Fixes: 0f87aa66e8c3 ("serial: sunhv: Initialize lock for non-registered console")
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/20200711135346.71171-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/sunhv.c')
-rw-r--r-- | drivers/tty/serial/sunhv.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/tty/serial/sunhv.c b/drivers/tty/serial/sunhv.c index e35073e93a5b..eafada8fb6fa 100644 --- a/drivers/tty/serial/sunhv.c +++ b/drivers/tty/serial/sunhv.c @@ -567,9 +567,6 @@ static int hv_probe(struct platform_device *op) sunserial_console_match(&sunhv_console, op->dev.of_node, &sunhv_reg, port->line, false); - /* We need to initialize lock even for non-registered console */ - spin_lock_init(&port->lock); - err = uart_add_one_port(&sunhv_reg, port); if (err) goto out_unregister_driver; |