diff options
author | Naresh Kamboju <naresh.kamboju@linaro.org> | 2020-04-27 21:37:36 +0530 |
---|---|---|
committer | Naresh Kamboju <naresh.kamboju@linaro.org> | 2020-04-27 21:37:53 +0530 |
commit | 9fd28c563d0836a8ff3ad6b746ff4617c1776e50 (patch) | |
tree | 7821f2c7576cddd5fc12488b653203d4476f14bf | |
parent | 18bf34080c4c3beb6699181986cc97dd712498fe (diff) |
serial: amba-pl011: Make sure we initialize the port.lock spinlockhikey-debug
Signed-off-by: John Stultz <john.stultz@linaro.org>
-rw-r--r-- | drivers/tty/serial/amba-pl011.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/tty/serial/amba-pl011.c b/drivers/tty/serial/amba-pl011.c index 2296bb0f95787..458fc3d9d48c2 100644 --- a/drivers/tty/serial/amba-pl011.c +++ b/drivers/tty/serial/amba-pl011.c @@ -2575,6 +2575,7 @@ static int pl011_setup_port(struct device *dev, struct uart_amba_port *uap, uap->port.has_sysrq = IS_ENABLED(CONFIG_SERIAL_AMBA_PL011_CONSOLE); uap->port.flags = UPF_BOOT_AUTOCONF; uap->port.line = index; + spin_lock_init(&uap->port.lock); amba_ports[index] = uap; |