summaryrefslogtreecommitdiffstats
path: root/drivers/serial/bfin_5xx.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-06-22 19:37:24 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2009-06-22 20:32:23 +0200
commit9c529a3d76dffae943868ebad07b042d15764712 (patch)
treed601295f0a0d182dcd7731d6b7e5619488d701ef /drivers/serial/bfin_5xx.c
parentbfin_jtag_comm: clean up printk usage (diff)
downloadlinux-9c529a3d76dffae943868ebad07b042d15764712.tar.xz
linux-9c529a3d76dffae943868ebad07b042d15764712.zip
serial: bfin_5xx: add missing spin_lock init
The Blackfin serial driver never initialized the spin_lock that is part of the serial core structure, but we never noticed because spin_lock's are rarely enabled on UP systems. Yeah lockdep and friends. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/serial/bfin_5xx.c')
-rw-r--r--drivers/serial/bfin_5xx.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/serial/bfin_5xx.c b/drivers/serial/bfin_5xx.c
index e2f6b1bfac98..d7fcca18223b 100644
--- a/drivers/serial/bfin_5xx.c
+++ b/drivers/serial/bfin_5xx.c
@@ -1110,6 +1110,7 @@ static void __init bfin_serial_init_ports(void)
bfin_serial_hw_init();
for (i = 0; i < nr_active_ports; i++) {
+ spin_lock_init(&bfin_serial_ports[i].port.lock);
bfin_serial_ports[i].port.uartclk = get_sclk();
bfin_serial_ports[i].port.fifosize = BFIN_UART_TX_FIFO_SIZE;
bfin_serial_ports[i].port.ops = &bfin_serial_pops;