diff --git a/drivers/tty/serial/uartlite.c b/drivers/tty/serial/uartlite.c index 4c28600dd93135..6f793531cc7c4e 100644 --- a/drivers/tty/serial/uartlite.c +++ b/drivers/tty/serial/uartlite.c @@ -559,7 +559,7 @@ static void early_uartlite_putc(struct uart_port *port, int c) * we'll never timeout on a working UART. */ - unsigned retries = 1000000; + unsigned int retries = 1000000; /* read status bit - 0x8 offset */ while (--retries && (readl(port->membase + 8) & (1 << 3))) ; @@ -571,7 +571,7 @@ static void early_uartlite_putc(struct uart_port *port, int c) } static void early_uartlite_write(struct console *console, - const char *s, unsigned n) + const char *s, unsigned int n) { struct earlycon_device *device = console->data; uart_console_write(&device->port, s, n, early_uartlite_putc);