staging: dgap: tty.c: fixes incompatible type error
authorLidza Louina <lidza.louina@gmail.com>
Thu, 22 Aug 2013 01:48:39 +0000 (21:48 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Aug 2013 17:12:43 +0000 (10:12 -0700)
This patch fixes the error: incompatible types when
assigning to type ‘struct ktermios *’ from type
‘struct ktermios’

Signed-off-by: Lidza Louina <lidza.louina@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dgap/dgap_tty.c

index 0ca1416..b906db3 100644 (file)
@@ -1421,7 +1421,7 @@ static void dgap_tty_close(struct tty_struct *tty, struct file *file)
        if (!bd || bd->magic != DGAP_BOARD_MAGIC)
                return;
 
-       ts = tty->termios;
+       ts = &tty->termios;
 
        DPR_CLOSE(("Close called\n"));