mirror of
https://github.com/torvalds/linux.git
synced 2024-11-15 16:41:58 +00:00
[SUNSU]: Fix missing spinlock initialization.
Caught by CONFIG_DEBUG_SPINLOCK. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
72b845e04e
commit
a858f1ca72
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user