summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2014-02-08 15:04:58 +0800
committerTom Rini <trini@ti.com>2014-02-21 09:50:12 -0500
commit1cb8393a1363bdc15946ef5b0b20bd10717daa74 (patch)
treee47b0758872e1ba66a9ed52896fff50e40155818 /drivers
parent1530f6f51ada57a9dd24f07d0f0955a8bf84c7b8 (diff)
downloadu-boot-imx-1cb8393a1363bdc15946ef5b0b20bd10717daa74.zip
u-boot-imx-1cb8393a1363bdc15946ef5b0b20bd10717daa74.tar.gz
u-boot-imx-1cb8393a1363bdc15946ef5b0b20bd10717daa74.tar.bz2
serial: arc: Convert to use default_serial_puts
Use default_serial_puts() instead of duplicating the implementation. Signed-off-by: Axel Lin <axel.lin@ingics.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/serial/serial_arc.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/serial/serial_arc.c b/drivers/serial/serial_arc.c
index b21b12b..2ddbf32 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(&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,
};