summaryrefslogtreecommitdiff
path: root/include/linux/tty.h
diff options
context:
space:
mode:
authorPeter Hurley <peter@hurleysoftware.com>2014-11-05 12:12:58 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-11-05 18:42:46 -0800
commit62462aefeb5aff092fc97037d9c12a4afe95a3ff (patch)
tree23ca93e2b8758158fff67a76e5851e22032811a9 /include/linux/tty.h
parent949aa64ff90d9a9b3aae13bb5a8247614adf4600 (diff)
downloadlinux-rpi3-62462aefeb5aff092fc97037d9c12a4afe95a3ff.tar.gz
linux-rpi3-62462aefeb5aff092fc97037d9c12a4afe95a3ff.tar.bz2
linux-rpi3-62462aefeb5aff092fc97037d9c12a4afe95a3ff.zip
tty: Simplify tty_ldisc_release() interface
Passing the 'other' tty to tty_ldisc_release() only makes sense for a pty pair; make o_tty function local instead. Reviewed-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Peter Hurley <peter@hurleysoftware.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/tty.h')
-rw-r--r--include/linux/tty.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/tty.h b/include/linux/tty.h
index 35b29f0750f8..af1a7f3e4e4a 100644
--- a/include/linux/tty.h
+++ b/include/linux/tty.h
@@ -557,7 +557,7 @@ extern int tty_register_ldisc(int disc, struct tty_ldisc_ops *new_ldisc);
extern int tty_unregister_ldisc(int disc);
extern int tty_set_ldisc(struct tty_struct *tty, int ldisc);
extern int tty_ldisc_setup(struct tty_struct *tty, struct tty_struct *o_tty);
-extern void tty_ldisc_release(struct tty_struct *tty, struct tty_struct *o_tty);
+extern void tty_ldisc_release(struct tty_struct *tty);
extern void tty_ldisc_init(struct tty_struct *tty);
extern void tty_ldisc_deinit(struct tty_struct *tty);
extern void tty_ldisc_begin(void);