Commit 378b8dab authored by Grzegorz Daniluk's avatar Grzegorz Daniluk

fix uart console

parent e215868d
......@@ -79,6 +79,7 @@ static int con_rx_internal(struct console_device* dev)
}
priv->state = CON_STATE_IDLE;
}
return rx_char;
}
static int con_uart_put_string(struct console_device* dev, const char *s)
......
......@@ -72,7 +72,7 @@ int suart_poll(struct simple_uart_device *dev)
int suart_read_byte(struct simple_uart_device *dev)
{
if (suart_poll(dev) < 0)
if (!suart_poll(dev))
return -1;
return readl(dev->base + UART_REG_RDR) & 0xff;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment