diff options
author | David S. Miller <davem@davemloft.net> | 2006-03-16 09:55:30 +0100 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-03-20 10:16:32 +0100 |
commit | a858f1ca726edc5eb7ed39722f7966d005f1c9ca (patch) | |
tree | 760fcedebb40e0ea7afaa788c09ef100b58fd6c0 /drivers/serial/sunsu.c | |
parent | [TG3]: Do not try to access NIC_SRAM_DATA_SIG on Sun parts. (diff) | |
download | linux-a858f1ca726edc5eb7ed39722f7966d005f1c9ca.tar.xz linux-a858f1ca726edc5eb7ed39722f7966d005f1c9ca.zip |
[SUNSU]: Fix missing spinlock initialization.
Caught by CONFIG_DEBUG_SPINLOCK.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r-- | drivers/serial/sunsu.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/serial/sunsu.c b/drivers/serial/sunsu.c index 46510e7f505c..46c44b83f57c 100644 --- a/drivers/serial/sunsu.c +++ b/drivers/serial/sunsu.c @@ -1280,6 +1280,7 @@ static int __init sunsu_kbd_ms_init(struct uart_sunsu_port *up, int channel) struct serio *serio; #endif + spin_lock_init(&up->port.lock); up->port.line = channel; up->port.type = PORT_UNKNOWN; up->port.uartclk = (SU_BASE_BAUD * 16); @@ -1509,6 +1510,7 @@ static int __init sunsu_serial_init(void) up->su_type == SU_PORT_KBD) continue; + spin_lock_init(&up->port.lock); up->port.flags |= UPF_BOOT_AUTOCONF; up->port.type = PORT_UNKNOWN; up->port.uartclk = (SU_BASE_BAUD * 16); |