]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
[SUNSU]: Fix missing spinlock initialization.
authorDavid S. Miller <davem@davemloft.net>
Thu, 16 Mar 2006 08:55:30 +0000 (00:55 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Mon, 20 Mar 2006 09:16:32 +0000 (01:16 -0800)
Caught by CONFIG_DEBUG_SPINLOCK.

Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/serial/sunsu.c

index 46510e7f505c371368e3920bd145e89299709b11..46c44b83f57cbd883cc05070cb461a250962563a 100644 (file)
@@ -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);