提交 a858f1ca 编写于 作者: D David S. Miller 提交者: David S. Miller

[SUNSU]: Fix missing spinlock initialization.

Caught by CONFIG_DEBUG_SPINLOCK.
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 72b845e0
...@@ -1280,6 +1280,7 @@ static int __init sunsu_kbd_ms_init(struct uart_sunsu_port *up, int channel) ...@@ -1280,6 +1280,7 @@ static int __init sunsu_kbd_ms_init(struct uart_sunsu_port *up, int channel)
struct serio *serio; struct serio *serio;
#endif #endif
spin_lock_init(&up->port.lock);
up->port.line = channel; up->port.line = channel;
up->port.type = PORT_UNKNOWN; up->port.type = PORT_UNKNOWN;
up->port.uartclk = (SU_BASE_BAUD * 16); up->port.uartclk = (SU_BASE_BAUD * 16);
...@@ -1509,6 +1510,7 @@ static int __init sunsu_serial_init(void) ...@@ -1509,6 +1510,7 @@ static int __init sunsu_serial_init(void)
up->su_type == SU_PORT_KBD) up->su_type == SU_PORT_KBD)
continue; continue;
spin_lock_init(&up->port.lock);
up->port.flags |= UPF_BOOT_AUTOCONF; up->port.flags |= UPF_BOOT_AUTOCONF;
up->port.type = PORT_UNKNOWN; up->port.type = PORT_UNKNOWN;
up->port.uartclk = (SU_BASE_BAUD * 16); up->port.uartclk = (SU_BASE_BAUD * 16);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册