From: Axel Lin Date: Sat, 17 Aug 2013 07:39:34 +0000 (+0800) Subject: serial: arm_dcc: Convert to use default_serial_puts X-Git-Tag: v2013.10-rc1~17 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=012a2c15d781d327c9de8734f2b2b3f793a58724;p=u-boot serial: arm_dcc: Convert to use default_serial_puts Use default_serial_puts() instead of its own implementation. Signed-off-by: Axel Lin Acked-by: Marek Vasut Acked-by: Michal Simek --- diff --git a/drivers/serial/arm_dcc.c b/drivers/serial/arm_dcc.c index 29d929571d..5dfb02f470 100644 --- a/drivers/serial/arm_dcc.c +++ b/drivers/serial/arm_dcc.c @@ -123,12 +123,6 @@ static void arm_dcc_putc(char ch) write_dcc(ch); } -static void arm_dcc_puts(const char *s) -{ - while (*s) - arm_dcc_putc(*s++); -} - static int arm_dcc_tstc(void) { register unsigned int reg; @@ -148,7 +142,7 @@ static struct serial_device arm_dcc_drv = { .stop = NULL, .setbrg = arm_dcc_setbrg, .putc = arm_dcc_putc, - .puts = arm_dcc_puts, + .puts = default_serial_puts, .getc = arm_dcc_getc, .tstc = arm_dcc_tstc, };