diff options
author | Marek Vasut <marex@denx.de> | 2012-10-06 14:07:02 +0000 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2012-10-17 07:55:50 -0700 |
commit | ec3fd68952662b1badb02caab9705eb93bdc4f1b (patch) | |
tree | 27e851d5f0b27b2b50b6125a818998aef597157a /drivers/serial/s3c4510b_uart.c | |
parent | bfb7d7a3d61ff23f9dd265a56e8b5cac5bbfd76e (diff) | |
download | u-boot-imx-ec3fd68952662b1badb02caab9705eb93bdc4f1b.zip u-boot-imx-ec3fd68952662b1badb02caab9705eb93bdc4f1b.tar.gz u-boot-imx-ec3fd68952662b1badb02caab9705eb93bdc4f1b.tar.bz2 |
serial: Use default_serial_puts() in drivers
Replace the in-place ad-hoc implementation of serial_puts() within
the drivers with default_serial_puts() call. This cuts down on the
code duplication quite a bit.
Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Marek Vasut <marek.vasut@gmail.com>
Cc: Tom Rini <trini@ti.com>
Diffstat (limited to 'drivers/serial/s3c4510b_uart.c')
-rw-r--r-- | drivers/serial/s3c4510b_uart.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/serial/s3c4510b_uart.c b/drivers/serial/s3c4510b_uart.c index 423d26e6..c460229 100644 --- a/drivers/serial/s3c4510b_uart.c +++ b/drivers/serial/s3c4510b_uart.c @@ -199,12 +199,10 @@ static int s3c4510b_serial_getc(void) static void s3c4510b_serial_puts(const char *s) { - while (*s) { - serial_putc (*s++); - } + default_serial_puts(s); /* busy wait for tx complete */ - while ( !uart->m_stat.bf.txComplete); + while (!uart->m_stat.bf.txComplete); /* clear break */ uart->m_ctrl.bf.sendBreak = 0; |