diff options
Diffstat (limited to 'drivers/char/nozomi.c')
-rw-r--r-- | drivers/char/nozomi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/nozomi.c b/drivers/char/nozomi.c index 61f5bfe74f38..9ef243429014 100644 --- a/drivers/char/nozomi.c +++ b/drivers/char/nozomi.c | |||
@@ -798,7 +798,7 @@ static int send_data(enum port_type index, struct nozomi *dc) | |||
798 | struct tty_struct *tty = tty_port_tty_get(&port->port); | 798 | struct tty_struct *tty = tty_port_tty_get(&port->port); |
799 | 799 | ||
800 | /* Get data from tty and place in buf for now */ | 800 | /* Get data from tty and place in buf for now */ |
801 | size = kfifo_get(&port->fifo_ul, dc->send_buf, | 801 | size = kfifo_out(&port->fifo_ul, dc->send_buf, |
802 | ul_size < SEND_BUF_MAX ? ul_size : SEND_BUF_MAX); | 802 | ul_size < SEND_BUF_MAX ? ul_size : SEND_BUF_MAX); |
803 | 803 | ||
804 | if (size == 0) { | 804 | if (size == 0) { |
@@ -1672,7 +1672,7 @@ static int ntty_write(struct tty_struct *tty, const unsigned char *buffer, | |||
1672 | goto exit; | 1672 | goto exit; |
1673 | } | 1673 | } |
1674 | 1674 | ||
1675 | rval = kfifo_put(&port->fifo_ul, (unsigned char *)buffer, count); | 1675 | rval = kfifo_in(&port->fifo_ul, (unsigned char *)buffer, count); |
1676 | 1676 | ||
1677 | /* notify card */ | 1677 | /* notify card */ |
1678 | if (unlikely(dc == NULL)) { | 1678 | if (unlikely(dc == NULL)) { |