diff options
author | Axel Lin <axel.lin@ingics.com> | 2013-08-17 15:39:34 +0800 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2013-08-19 09:44:28 -0400 |
commit | 012a2c15d781d327c9de8734f2b2b3f793a58724 (patch) | |
tree | 586efb09257dfc3656ebf95e75d0630e9d3e38d1 /drivers/serial | |
parent | 3e24dd2b8713c00ddecbc0cded2b0390e9b256be (diff) | |
download | u-boot-imx-012a2c15d781d327c9de8734f2b2b3f793a58724.zip u-boot-imx-012a2c15d781d327c9de8734f2b2b3f793a58724.tar.gz u-boot-imx-012a2c15d781d327c9de8734f2b2b3f793a58724.tar.bz2 |
serial: arm_dcc: Convert to use default_serial_puts
Use default_serial_puts() instead of its own implementation.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Marek Vasut <marex@denx.de>
Acked-by: Michal Simek <monstr@monstr.eu>
Diffstat (limited to 'drivers/serial')
-rw-r--r-- | drivers/serial/arm_dcc.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/serial/arm_dcc.c b/drivers/serial/arm_dcc.c index 29d9295..5dfb02f 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, }; |