Message ID | 1497897167-14556-251-git-send-email-w@1wt.eu |
---|---|
State | New |
Headers | show |
Series | None | expand |
diff --git a/drivers/tty/nozomi.c b/drivers/tty/nozomi.c index d6080c3..ce2e5d5 100644 --- a/drivers/tty/nozomi.c +++ b/drivers/tty/nozomi.c @@ -823,7 +823,7 @@ static int receive_data(enum port_type index, struct nozomi *dc) struct tty_struct *tty = tty_port_tty_get(&port->port); int i, ret; - read_mem32((u32 *) &size, addr, 4); + size = __le32_to_cpu(readl(addr)); /* DBG1( "%d bytes port: %d", size, index); */ if (tty && test_bit(TTY_THROTTLED, &tty->flags)) {