]> err.no Git - linux-2.6/blobdiff - drivers/serial/dz.c
Fix compile errors in SGI console drivers (linux-next tree)
[linux-2.6] / drivers / serial / dz.c
index 116211fcd36fc196ff12de4aeb36ee8e6194031f..a81d2c2ff8a2d9d1a71e26cbbdc1411668582ade 100644 (file)
@@ -197,7 +197,7 @@ static inline void dz_receive_chars(struct dz_mux *mux)
        while ((status = dz_in(dport, DZ_RBUF)) & DZ_DVAL) {
                dport = &mux->dport[LINE(status)];
                uport = &dport->port;
-               tty = uport->info->tty;         /* point to the proper dev */
+               tty = uport->info->port.tty;    /* point to the proper dev */
 
                ch = UCHAR(status);             /* grab the char */
                flag = TTY_NORMAL;
@@ -249,7 +249,7 @@ static inline void dz_receive_chars(struct dz_mux *mux)
        }
        for (i = 0; i < DZ_NB_PORT; i++)
                if (lines_rx[i])
-                       tty_flip_buffer_push(mux->dport[i].port.info->tty);
+                       tty_flip_buffer_push(mux->dport[i].port.info->port.tty);
 }
 
 /*
@@ -819,7 +819,7 @@ static void dz_console_putchar(struct uart_port *uport, int ch)
                dz_out(dport, DZ_TCR, mask);
                iob();
                udelay(2);
-       } while (loops--);
+       } while (--loops);
 
        if (loops)                              /* Cannot send otherwise. */
                dz_out(dport, DZ_TDR, ch);