TTY: isdn, use tty_port_close_end helper
authorJiri Slaby <jslaby@suse.cz>
Mon, 2 Apr 2012 11:54:00 +0000 (13:54 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 Apr 2012 18:16:57 +0000 (11:16 -0700)
commit4330d663fed02ace2feba1ab3795ab0c08148a28
tree703e9acf579e879a9d58013d43f1f4fa66850c45
parent265d6f00e79166c145421cbca06a20f33332b29f
TTY: isdn, use tty_port_close_end helper

The code does almost the same, so there we can leverage the helper's
code. The only difference is locking. The helper protects counts by a
spinlock. This never hurts and should be added to other code parts
too.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Karsten Keil <isdn@linux-pingi.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/isdn/i4l/isdn_tty.c