TTY: add tty_port_tty_hangup helper
authorJiri Slaby <jslaby@suse.cz>
Thu, 7 Mar 2013 12:12:30 +0000 (13:12 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 18 Mar 2013 23:24:29 +0000 (16:24 -0700)
commitaa27a094e2c2e0cc59914e56113b860f524f4479
treeb3cfef8d8023741107e3d3bed934f2bd4d8bf189
parente4408ce3c23f8451eff7a2954694598fb8fce833
TTY: add tty_port_tty_hangup helper

It allows for cleaning up on a considerable amount of places. They did
port_get, hangup, kref_put. Now the only thing needed is to call
tty_port_tty_hangup which does exactly that. And they can also decide
whether to consider CLOCAL or completely ignore that.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 files changed:
arch/um/drivers/chan_kern.c
drivers/mmc/card/sdio_uart.c
drivers/net/usb/hso.c
drivers/tty/cyclades.c
drivers/tty/moxa.c
drivers/tty/n_gsm.c
drivers/tty/nozomi.c
drivers/tty/rocket.c
drivers/tty/serial/ifx6x60.c
drivers/tty/tty_port.c
drivers/usb/class/cdc-acm.c
drivers/usb/serial/keyspan.c
drivers/usb/serial/option.c
drivers/usb/serial/sierra.c
include/linux/tty.h
net/irda/ircomm/ircomm_tty_attach.c