]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: dgap: fep5.c: fixes errors with tty function calls
authorLidza Louina <lidza.louina@gmail.com>
Thu, 22 Aug 2013 01:48:34 +0000 (21:48 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Aug 2013 17:12:42 +0000 (10:12 -0700)
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>
drivers/staging/dgap/dgap_fep5.c

index 604eae1f785d7790b7b431687f8c2505b7ba9dae..2bbbcd3c398efe7cda7f448f9862f4bdd9ec8bb1 100644 (file)
@@ -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);
                        }
                }