[PATCH 02/12] staging: dgap: fixes incompatible type error

Lidza Louina lidza.louina at gmail.com
Thu Aug 22 01:48:32 UTC 2013


This patch fixes the error: incompatible types
when assigning to type ‘struct ktermios *’ from
type ‘struct ktermios’

Signed-off-by: Lidza Louina <lidza.louina at gmail.com>
---
 drivers/staging/dgap/dgap_fep5.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/dgap/dgap_fep5.c b/drivers/staging/dgap/dgap_fep5.c
index ed3cb15..ce87752 100644
--- a/drivers/staging/dgap/dgap_fep5.c
+++ b/drivers/staging/dgap/dgap_fep5.c
@@ -1260,7 +1260,7 @@ int dgap_param(struct tty_struct *tty)
 	DPR_PARAM(("param start: tdev: %x cflags: %x oflags: %x iflags: %x\n",
 		ch->ch_tun.un_dev, ch->ch_c_cflag, ch->ch_c_oflag, ch->ch_c_iflag));
 
-	ts = tty->termios;
+	ts = &tty->termios;
 
 	/*
 	 * If baud rate is zero, flush queues, and set mval to drop DTR.
-- 
1.8.1.2



More information about the devel mailing list