aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/speakup/main.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2010-10-07 22:30:49 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2010-10-07 22:30:49 -0400
commit5b19208a5e236b26357162d6a28ff9e8d4296725 (patch)
tree612fd61bd82d1e83ee37eb5fc85b95299394e5ba /drivers/staging/speakup/main.c
parentc6e3fd22cd538365bfeb82997d5b89562e077d42 (diff)
Staging: speakup: fix speakup core to build properly
The vc_data structure changed to move the tty structure off to the port, so change the code to handle this. Now the code will build properly, and hopefully work as well. Cc: William Hubbs <w.d.hubbs@gmail.com> Cc: Samuel Thibault <samuel.thibault@ens-lyon.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/speakup/main.c')
-rw-r--r--drivers/staging/speakup/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/speakup/main.c b/drivers/staging/speakup/main.c
index 8c549650f21..2ef3b3982a2 100644
--- a/drivers/staging/speakup/main.c
+++ b/drivers/staging/speakup/main.c
@@ -2010,7 +2010,7 @@ speakup_key(struct vc_data *vc, int shift_state, int keycode, u_short keysym,
2010 return 0; 2010 return 0;
2011 2011
2012 spk_lock(flags); 2012 spk_lock(flags);
2013 tty = vc->vc_tty; 2013 tty = vc->port.tty;
2014 if (type >= 0xf0) 2014 if (type >= 0xf0)
2015 type -= 0xf0; 2015 type -= 0xf0;
2016 if (type == KT_PAD && 2016 if (type == KT_PAD &&