Skip to content

Commit c6e45ae

Browse files
andy-shevgregkh
authored andcommitted
Revert "tty: serial: add missing spin_lock_init for SiFive serial console"
This reverts commit 17b4efd. There has been a quick fix against uninitialised lock revealed by the commit f743061 ("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: 17b4efd ("tty: serial: add missing spin_lock_init for SiFive serial console") Depends-on: f743061 ("serial: core: Initialise spin lock before use in uart_configure_port()") Signed-off-by: Andy Shevchenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 6a63ba9 commit c6e45ae

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/tty/serial/sifive.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -883,7 +883,6 @@ console_initcall(sifive_console_init);
883883

884884
static void __ssp_add_console_port(struct sifive_serial_port *ssp)
885885
{
886-
spin_lock_init(&ssp->port.lock);
887886
sifive_serial_console_ports[ssp->port.line] = ssp;
888887
}
889888

0 commit comments

Comments
 (0)