From: Gianluca Anzolin Date: Mon, 29 Jul 2013 15:08:10 +0000 (+0200) Subject: Bluetooth: Move the tty initialization and cleanup out of open/close X-Git-Tag: v3.12-rc1~132^2~84^2^2~54^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=54b926a1434e817ca84cb090f36b56763e192470;p=pandora-kernel.git Bluetooth: Move the tty initialization and cleanup out of open/close Move the tty_struct initialization from rfcomm_tty_open() to rfcomm_tty_install() and do the same for the cleanup moving the code from rfcomm_tty_close() to rfcomm_tty_cleanup(). Add also extra error handling in rfcomm_tty_install() because, unlike .open()/.close(), .cleanup() is not called if .install() fails. Signed-off-by: Gianluca Anzolin Reviewed-by: Peter Hurley Signed-off-by: Gustavo Padovan --- Reading git-diff-tree failed