]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit702b66ce56eff67ed2b54962f22a40b3ab082dc9
treeb3cfef8d8023741107e3d3bed934f2bd4d8bf189
parent18d31ba6bd5e745660db655fdbc71f65f94a2aaf
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