]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
Staging: speakup: fix speakup core to build properly
authorGreg Kroah-Hartman <gregkh@suse.de>
Fri, 8 Oct 2010 02:30:49 +0000 (19:30 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 8 Oct 2010 02:30:49 +0000 (19:30 -0700)
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>
drivers/staging/speakup/buffers.c
drivers/staging/speakup/main.c

index 6dd53cf348f6fe7a1e87b1ee03be297f72dae2df..b7b60d5e866023d461a8661a2fa278330ff8a5de 100644 (file)
@@ -28,8 +28,8 @@ void speakup_start_ttys(void)
        for (i = 0; i < MAX_NR_CONSOLES; i++) {
                if (speakup_console[i] && speakup_console[i]->tty_stopped)
                        continue;
-               if ((vc_cons[i].d != NULL) && (vc_cons[i].d->vc_tty != NULL))
-                       start_tty(vc_cons[i].d->vc_tty);
+               if ((vc_cons[i].d != NULL) && (vc_cons[i].d->port.tty != NULL))
+                       start_tty(vc_cons[i].d->port.tty);
        }
 }
 EXPORT_SYMBOL_GPL(speakup_start_ttys);
@@ -39,9 +39,8 @@ static void speakup_stop_ttys(void)
        int i;
 
        for (i = 0; i < MAX_NR_CONSOLES; i++)
-               if ((vc_cons[i].d != NULL) && (vc_cons[i].d->vc_tty != NULL))
-                       stop_tty(vc_cons[i].d->vc_tty);
-       return;
+               if ((vc_cons[i].d != NULL) && (vc_cons[i].d->port.tty != NULL))
+                       stop_tty(vc_cons[i].d->port.tty);
 }
 
 static int synth_buffer_free(void)
index 8c549650f217dc53d8e973549d44b460835a751d..2ef3b3982a2d2f25bc76c37201e3bf31af0b1f9e 100644 (file)
@@ -2010,7 +2010,7 @@ speakup_key(struct vc_data *vc, int shift_state, int keycode, u_short keysym,
                return 0;
 
        spk_lock(flags);
-       tty = vc->vc_tty;
+       tty = vc->port.tty;
        if (type >= 0xf0)
                type -= 0xf0;
        if (type == KT_PAD &&