From 1cb8393a1363bdc15946ef5b0b20bd10717daa74 Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Sat, 8 Feb 2014 15:04:58 +0800 Subject: [PATCH] serial: arc: Convert to use default_serial_puts Use default_serial_puts() instead of duplicating the implementation. Signed-off-by: Axel Lin --- drivers/serial/serial_arc.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/serial/serial_arc.c b/drivers/serial/serial_arc.c index b21b12ba44..2ddbf32a50 100644 --- a/drivers/serial/serial_arc.c +++ b/drivers/serial/serial_arc.c @@ -93,19 +93,13 @@ static int arc_serial_getc(void) return readb(®s->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, }; -- 2.39.5