Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Amiga serial driver: port_write_mutex fixup

The port_write_mutex was converted from a semaphore to a mutex,
but there was still this ifdef'd init_MUTEX reference remaining.

Signed-off-by: Daniel Walker <dwalker@mvista.com>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Daniel Walker and committed by
Linus Torvalds
cce992bc 6c6080f7

+1 -1
+1 -1
drivers/char/ser_a2232.c
··· 653 653 port->gs.closing_wait = 30 * HZ; 654 654 port->gs.rd = &a2232_real_driver; 655 655 #ifdef NEW_WRITE_LOCKING 656 - init_MUTEX(&(port->gs.port_write_mutex)); 656 + mutex_init(&(port->gs.port_write_mutex)); 657 657 #endif 658 658 init_waitqueue_head(&port->gs.open_wait); 659 659 init_waitqueue_head(&port->gs.close_wait);