Subject: [patch] fix unitilized spinlock in cpm driver when used as console

From: Greg Weeks <[email-masked]>
Date: Wed, 16 Mar 2005 11:44:36 -0500

Fix unitilized spinlock in the cpm scc driver when used as console.

Signed-off-by: Greg Weeks <[email-masked]>

--- all/drivers/serial/cpm_uart/cpm_uart_core.c-orig
+++ all/drivers/serial/cpm_uart/cpm_uart_core.c

@@ -1038,6 +1038,7 @@
 
 	port =
 	    (struct uart_port *)&cpm_uart_ports[cpm_uart_port_map[co->index]];
+	spin_lock_init(&(port->lock));
 	pinfo = (struct uart_cpm_port *)port;
 	
 	pinfo->flags |= FLAG_CONSOLE;