Commit 9c529a3d76dffae943868ebad07b042d15764712
Committed by
Linus Torvalds
1 parent
56578abfd1
Exists in
master
and in
7 other branches
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>
Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff
drivers/serial/bfin_5xx.c
... | ... | @@ -1110,6 +1110,7 @@ |
1110 | 1110 | bfin_serial_hw_init(); |
1111 | 1111 | |
1112 | 1112 | for (i = 0; i < nr_active_ports; i++) { |
1113 | + spin_lock_init(&bfin_serial_ports[i].port.lock); | |
1113 | 1114 | bfin_serial_ports[i].port.uartclk = get_sclk(); |
1114 | 1115 | bfin_serial_ports[i].port.fifosize = BFIN_UART_TX_FIFO_SIZE; |
1115 | 1116 | bfin_serial_ports[i].port.ops = &bfin_serial_pops; |