TTY: amiserial, use tty_port_close_end
authorJiri Slaby <jslaby@suse.cz>
Mon, 5 Mar 2012 13:52:48 +0000 (14:52 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Mar 2012 20:50:02 +0000 (12:50 -0800)
commitb8edebe4b8b4ad5bd436cf9080b77b29e219029a
tree41cbe2cf6027f051a234fe42f6a97cc6ddadf446
parent6e1aeb0379f47b51ad4d25e5e0d9648dbd50f0b9
TTY: amiserial, use tty_port_close_end

Hmm, the code was sleeping with interrupts disabled. This was not
good. Fix this by turning interrupts at an appropriate place. (The
race is protected by CLOSING flag.)

After the move, the code is identical to tty_port_close_end, so use
it!

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/amiserial.c