tty: Refactor wait for ldisc refs out of tty_ldisc_hangup()
authorPeter Hurley <peter@hurleysoftware.com>
Mon, 11 Mar 2013 20:44:24 +0000 (16:44 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 18 Mar 2013 23:32:46 +0000 (16:32 -0700)
commit168942c9fa01916173a7b72ac67e1d218d571013
treea431ccb0dbe13b1cb4553effd607c00ac59c1be6
parent79901317ce80c43a0249ccc6e3fea9d0968e159e
tty: Refactor wait for ldisc refs out of tty_ldisc_hangup()

Refactor tty_ldisc_hangup() to extract standalone function,
tty_ldisc_hangup_wait_idle(), to wait for ldisc references
to be released.

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/tty_ldisc.c