]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
serial: arc: Convert to use default_serial_puts
authorAxel Lin <axel.lin@ingics.com>
Sat, 8 Feb 2014 07:04:58 +0000 (15:04 +0800)
committerTom Rini <trini@ti.com>
Fri, 21 Feb 2014 14:50:12 +0000 (09:50 -0500)
Use default_serial_puts() instead of duplicating the implementation.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
drivers/serial/serial_arc.c

index b21b12ba44238cc23a519063c32e51b2198c173d..2ddbf32a507ace37bbd66d54402e0d3895b7785f 100644 (file)
@@ -93,19 +93,13 @@ static int arc_serial_getc(void)
        return readb(&regs->data) & 0xFF;
 }
 
-static void arc_serial_puts(const char *s)
-{
-       while (*s)
-               arc_serial_putc(*s++);
-}
-
 static struct serial_device arc_serial_drv = {
        .name   = "arc_serial",
        .start  = arc_serial_init,
        .stop   = NULL,
        .setbrg = arc_serial_setbrg,
        .putc   = arc_serial_putc,
-       .puts   = arc_serial_puts,
+       .puts   = default_serial_puts,
        .getc   = arc_serial_getc,
        .tstc   = arc_serial_tstc,
 };