mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 21:38:32 +08:00
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>
This commit is contained in:
parent
6c6080f74c
commit
cce992bcee
@ -653,7 +653,7 @@ static void a2232_init_portstructs(void)
|
|||||||
port->gs.closing_wait = 30 * HZ;
|
port->gs.closing_wait = 30 * HZ;
|
||||||
port->gs.rd = &a2232_real_driver;
|
port->gs.rd = &a2232_real_driver;
|
||||||
#ifdef NEW_WRITE_LOCKING
|
#ifdef NEW_WRITE_LOCKING
|
||||||
init_MUTEX(&(port->gs.port_write_mutex));
|
mutex_init(&(port->gs.port_write_mutex));
|
||||||
#endif
|
#endif
|
||||||
init_waitqueue_head(&port->gs.open_wait);
|
init_waitqueue_head(&port->gs.open_wait);
|
||||||
init_waitqueue_head(&port->gs.close_wait);
|
init_waitqueue_head(&port->gs.close_wait);
|
||||||
|
Loading…
Reference in New Issue
Block a user