[PATCH] cpm_uart: Fix spinlock initialization

From: Kumar Gala
Date: Fri Aug 12 2005 - 11:33:30 EST


The lack of spin_lock_init causes badness in the preempt configuration.

Signed-off-by: Vitaly Bordug <vbordug@xxxxxxxxxxxxx>
Signed-off-by: Kumar Gala <kumar.gala@xxxxxxxxxxxxx>

---
commit d6dee08c314c1952921adc99e8f5ff6c332341ef
tree 96ca76ab7d75cf808287af50c88ed7d1aed49923
parent 51a75dcea8fe0407f06467de36e258616cda68f9
author Kumar K. Gala <kumar.gala@xxxxxxxxxxxxx> Fri, 12 Aug 2005 11:26:44 -0500
committer Kumar K. Gala <kumar.gala@xxxxxxxxxxxxx> Fri, 12 Aug 2005 11:26:44 -0500

drivers/serial/cpm_uart/cpm_uart_core.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)

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
@@ -1087,6 +1087,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;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/