]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/char/pty.c
Pull video into release branch
[linux-2.6-omap-h63xx.git] / drivers / char / pty.c
index 49f3997fd251d95cfaec443d98f5a15037f52c68..9b5a2c0e7008c82183649e6006784088ceabd220 100644 (file)
@@ -111,7 +111,7 @@ static int pty_write(struct tty_struct * tty, const unsigned char *buf, int coun
        if (!to || tty->stopped)
                return 0;
 
-       c = to->ldisc.receive_room(to);
+       c = to->receive_room;
        if (c > count)
                c = count;
        to->ldisc.receive_buf(to, buf, NULL, c);
@@ -126,7 +126,7 @@ static int pty_write_room(struct tty_struct *tty)
        if (!to || tty->stopped)
                return 0;
 
-       return to->ldisc.receive_room(to);
+       return to->receive_room;
 }
 
 /*