summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLidza Louina <lidza.louina@gmail.com>2013-08-22 01:48:34 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-08-22 17:12:42 (GMT)
commitbb9ebe70739c62322c26f22fac3c60998cfe56ec (patch)
treedd7b14309f994f3d8880e009d906232de0540392
parent1c2aa15ae4e33d6bfb4b068967bb451618db6bec (diff)
downloadlinux-fsl-qoriq-bb9ebe70739c62322c26f22fac3c60998cfe56ec.tar.xz
staging: dgap: fep5.c: fixes errors with tty function calls
This patch fixes errors with the tty function calls tty_buffer_request_room, tty_insert_flip_char and tty_flip_buffer_push. They now take struct tty_port as a parameter instead of tty_struct. Signed-off-by: Lidza Louina <lidza.louina@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/dgap/dgap_fep5.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/dgap/dgap_fep5.c b/drivers/staging/dgap/dgap_fep5.c
index 604eae1..2bbbcd3 100644
--- a/drivers/staging/dgap/dgap_fep5.c
+++ b/drivers/staging/dgap/dgap_fep5.c
@@ -1805,9 +1805,9 @@ static int dgap_event(struct board_t *bd)
if (ch->ch_tun.un_tty) {
/* A break has been indicated */
ch->ch_err_break++;
- tty_buffer_request_room(ch->ch_tun.un_tty, 1);
- tty_insert_flip_char(ch->ch_tun.un_tty, 0, TTY_BREAK);
- tty_flip_buffer_push(ch->ch_tun.un_tty);
+ tty_buffer_request_room(ch->ch_tun.un_tty->port, 1);
+ tty_insert_flip_char(ch->ch_tun.un_tty->port, 0, TTY_BREAK);
+ tty_flip_buffer_push(ch->ch_tun.un_tty->port);
}
}