Subject: [PATCH] cpm_uart: added missed spinlock initialization

From: Vitaly Bordug <[email-masked]>
Date: Thu, 11 Aug 2005 19:37:52 +0400

The lack of spin_lock_init causes badness in the preempt configuration.
The fix is trivial.

Signed-off-by: Vitaly Bordug <[email-masked]>

-- 
Sincerely,
Vitaly
diff --git a/drivers/serial/cpm_uart/cpm_uart_core.c b/drivers/serial/cpm_uart/cpm_uart_core.c
--- a/drivers/serial/cpm_uart/cpm_uart_core.c
+++ b/drivers/serial/cpm_uart/cpm_uart_core.c
@@ -1045,6 +1045,7 @@ static int __init cpm_uart_console_setup
 	port =
 	    (struct uart_port *)&cpm_uart_ports[cpm_uart_port_map[co->index]];
 	pinfo = (struct uart_cpm_port *)port;
+	spin_lock_init(&port->lock);
 	
 	pinfo->flags |= FLAG_CONSOLE;