소스 검색

staging: dgap: tty.c: fixes incompatible type error

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>
Lidza Louina 12 년 전
부모
커밋
038bc7ac70
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      drivers/staging/dgap/dgap_tty.c

+ 1 - 1
drivers/staging/dgap/dgap_tty.c

@@ -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"));