[U-Boot] [PATCH] serial: arc: Convert to use default_serial_puts

Axel Lin axel.lin at ingics.com
Sat Feb 8 08:04:58 CET 2014


Use default_serial_puts() instead of duplicating the implementation.

Signed-off-by: Axel Lin <axel.lin at ingics.com>
---
 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 e63d25d..fd56ca3 100644
--- a/drivers/serial/serial_arc.c
+++ b/drivers/serial/serial_arc.c
@@ -77,19 +77,13 @@ static int arc_serial_getc(void)
 	return readl(&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,
 };
-- 
1.8.1.2





More information about the U-Boot mailing list