Skip to content

Commit 71614e1

Browse files
andy-shevgregkh
authored andcommitted
Revert "serial: sh-sci: Initialize spinlock for uart console"
This reverts commit f38278e. 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: f38278e ("serial: sh-sci: Initialize spinlock for uart 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 dfe51d9 commit 71614e1

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/tty/serial/sh-sci.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3301,9 +3301,6 @@ static int sci_probe_single(struct platform_device *dev,
33013301
sciport->port.flags |= UPF_HARD_FLOW;
33023302
}
33033303

3304-
if (sci_uart_driver.cons->index == sciport->port.line)
3305-
spin_lock_init(&sciport->port.lock);
3306-
33073304
ret = uart_add_one_port(&sci_uart_driver, &sciport->port);
33083305
if (ret) {
33093306
sci_cleanup_single(sciport);

0 commit comments

Comments
 (0)