static void early_serial_write(struct console *con, const char *s, unsigned n) { while (*s && n-- > 0) { if (*s == '\n') early_serial_putc('\r'); early_serial_putc(*s); s++; } }
static __init void early_serial_write(struct console *con, const char *s, unsigned int n) { struct bfin_serial_port *uart = &bfin_serial_ports[con->index]; unsigned int i; for (i = 0; i < n; i++, s++) { if (*s == '\n') early_serial_putc(&uart->port, '\r'); early_serial_putc(&uart->port, *s); } }