X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=drivers%2Fchar%2Fpty.c;h=9b5a2c0e7008c82183649e6006784088ceabd220;hb=c654d60e8f0ea13e35b15cff54c0e473b8b162be;hp=49f3997fd251d95cfaec443d98f5a15037f52c68;hpb=3874b98c655b9490bea1cf9c7697d5dc5338376f;p=powerpc.git diff --git a/drivers/char/pty.c b/drivers/char/pty.c index 49f3997fd2..9b5a2c0e70 100644 --- a/drivers/char/pty.c +++ b/drivers/char/pty.c @@ -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; } /*