Skip to content

Commit 6a63ba9

Browse files
andy-shevgregkh
authored andcommitted
Revert "serial: amba-pl011: Make sure we initialize the port.lock spinlock"
This reverts commit 8508f4c. 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: 8508f4c ("serial: amba-pl011: Make sure we initialize the port.lock spinlock") 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 30336ef commit 6a63ba9

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/tty/serial/amba-pl011.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2607,7 +2607,6 @@ static int pl011_setup_port(struct device *dev, struct uart_amba_port *uap,
26072607
uap->port.has_sysrq = IS_ENABLED(CONFIG_SERIAL_AMBA_PL011_CONSOLE);
26082608
uap->port.flags = UPF_BOOT_AUTOCONF;
26092609
uap->port.line = index;
2610-
spin_lock_init(&uap->port.lock);
26112610

26122611
amba_ports[index] = uap;
26132612

0 commit comments

Comments
 (0)