serial: Use default_serial_puts() in drivers
[oweals/u-boot.git] / arch / sparc / cpu / leon3 / serial.c
index c4f3ee83c3399ee7c2027150a27c6ae9aad0b1d7..838d4514eeb2ff4d794e2782468a522db688420f 100644 (file)
@@ -99,13 +99,6 @@ static void leon3_serial_putc(const char c)
        leon3_serial_putc_raw(c);
 }
 
-static void leon3_serial_puts(const char *s)
-{
-       while (*s) {
-               serial_putc(*s++);
-       }
-}
-
 static int leon3_serial_getc(void)
 {
        if (!leon3_apbuart)
@@ -146,7 +139,7 @@ static struct serial_device leon3_serial_drv = {
        .stop   = NULL,
        .setbrg = leon3_serial_setbrg,
        .putc   = leon3_serial_putc,
-       .puts   = leon3_serial_puts,
+       .puts   = default_serial_puts,
        .getc   = leon3_serial_getc,
        .tstc   = leon3_serial_tstc,
 };