From: Peter Hurley Date: Mon, 16 Jun 2014 13:17:08 +0000 (-0400) Subject: tty: Call hangup method in modern style X-Git-Tag: v3.17-rc1~122^2~38 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=7c6d340f4f0e889b134fd72f203519f591feef9d;p=karo-tx-linux.git tty: Call hangup method in modern style Signed-off-by: Peter Hurley Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/tty_io.c b/drivers/tty/tty_io.c index 34110719fe03..714320b5e525 100644 --- a/drivers/tty/tty_io.c +++ b/drivers/tty/tty_io.c @@ -688,7 +688,7 @@ static void __tty_hangup(struct tty_struct *tty, int exit_session) for (n = 0; n < closecount; n++) tty->ops->close(tty, cons_filp); } else if (tty->ops->hangup) - (tty->ops->hangup)(tty); + tty->ops->hangup(tty); /* * We don't want to have driver/ldisc interactions beyond * the ones we did here. The driver layer expects no