Revert "serial: imx: Initialize lock for non-registered console"
This reverts commit8f065acec7
. 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:8f065acec7
("serial: imx: 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-4-andriy.shevchenko@linux.intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
c6e45ae511
commit
dfe51d9777
|
@ -2406,9 +2406,6 @@ static int imx_uart_probe(struct platform_device *pdev)
|
|||
}
|
||||
}
|
||||
|
||||
/* We need to initialize lock even for non-registered console */
|
||||
spin_lock_init(&sport->port.lock);
|
||||
|
||||
imx_uart_ports[sport->port.line] = sport;
|
||||
|
||||
platform_set_drvdata(pdev, sport);
|
||||
|
|
Loading…
Reference in New Issue