Revert "serial: sunhv: Initialize lock for non-registered console"
This reverts commit0f87aa66e8. There has been a quick fix against uninitialised lock revealed by the commitf743061a85("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:0f87aa66e8("serial: sunhv: Initialize lock for non-registered console") Depends-on:f743061a85("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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
6f2c6599ba
commit
30336ef6f1
@@ -567,9 +567,6 @@ static int hv_probe(struct platform_device *op)
|
|||||||
sunserial_console_match(&sunhv_console, op->dev.of_node,
|
sunserial_console_match(&sunhv_console, op->dev.of_node,
|
||||||
&sunhv_reg, port->line, false);
|
&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);
|
err = uart_add_one_port(&sunhv_reg, port);
|
||||||
if (err)
|
if (err)
|
||||||
goto out_unregister_driver;
|
goto out_unregister_driver;
|
||||||
|
|||||||
Reference in New Issue
Block a user