cyclades: switch to tty_port_hangup
authorJiri Slaby <jirislaby@gmail.com>
Sat, 19 Sep 2009 20:13:13 +0000 (13:13 -0700)
committerLive-CD User <linux@linux.site>
Sat, 19 Sep 2009 20:13:13 +0000 (13:13 -0700)
commit174e6fe01e7881caaa350b5e98e4c6189b6cb593
tree23748eaa318e8c7e224e10a566673bf8312963c0
parentf0eefdc30e55e761facf645bd1be1339b21c30e6
cyclades: switch to tty_port_hangup

Do not duplicate common tty_port_hangup code. Use it instead.

Also do not unset ASYNC_NORMAL_ACTIVE and wake up from the
tty_hangup() caller. It makes no sense since we don't check that
flag in sleepers. tty_port_hangup() performed later will do the
right job.

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/char/cyclades.c