TTY: amiserial, pass tty down to functions
authorJiri Slaby <jslaby@suse.cz>
Mon, 5 Mar 2012 13:52:22 +0000 (14:52 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Mar 2012 20:30:50 +0000 (12:30 -0800)
commit588993dd8d99bdbd9a7296abe0c7964ecc874300
tree31883b2d8e59c8ccd93dc8feabb55c5e3532f72b
parent0f9b9684db2d1369fe303de5729cbdc817265bec
TTY: amiserial, pass tty down to functions

This avoids pain with tty refcounting and touching tty_port in the
future. It allows us to remove some info->tty tests because the tty
passed down to them can never be NULL.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/amiserial.c