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

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

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Tony Luck <tony.luck@intel.com>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/ia64/hp/sim/simserial.c