TTY: rfcomm/tty, use count from tty_port
authorJiri Slaby <jslaby@suse.cz>
Mon, 2 Apr 2012 11:54:53 +0000 (13:54 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 Apr 2012 19:04:31 +0000 (12:04 -0700)
commitf997a01e3272f08cbbf77392b846878332dafc22
tree06f2508290e7b2a0117a26af459483a7aa6823ee
parentb2c4be398bf771a09f84eae6cf12cbd685384b8d
TTY: rfcomm/tty, use count from tty_port

This means converting an atomic counter to a counter protected by
lock. This is the first step needed to convert the rest of the code to
the tty_port helpers.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/bluetooth/rfcomm/tty.c