Skip to content

Commit 30336ef

Browse files
andy-shevgregkh
authored andcommitted
Revert "serial: sunhv: Initialize lock for non-registered console"
This reverts commit 0f87aa6. 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: 0f87aa6 ("serial: sunhv: Initialize lock for non-registered 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 6f2c659 commit 30336ef

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/tty/serial/sunhv.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -567,9 +567,6 @@ static int hv_probe(struct platform_device *op)
567567
sunserial_console_match(&sunhv_console, op->dev.of_node,
568568
&sunhv_reg, port->line, false);
569569

570-
/* We need to initialize lock even for non-registered console */
571-
spin_lock_init(&port->lock);
572-
573570
err = uart_add_one_port(&sunhv_reg, port);
574571
if (err)
575572
goto out_unregister_driver;

0 commit comments

Comments
 (0)