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/altera_uart.c | |
parent | bfb7d7a3d61ff23f9dd265a56e8b5cac5bbfd76e (diff) | |
download | u-boot-ec3fd68952662b1badb02caab9705eb93bdc4f1b.tar.gz u-boot-ec3fd68952662b1badb02caab9705eb93bdc4f1b.tar.xz u-boot-ec3fd68952662b1badb02caab9705eb93bdc4f1b.zip |
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/altera_uart.c')
-rw-r--r-- | drivers/serial/altera_uart.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/serial/altera_uart.c b/drivers/serial/altera_uart.c index 27550ed48d..118cd58ece 100644 --- a/drivers/serial/altera_uart.c +++ b/drivers/serial/altera_uart.c @@ -82,13 +82,6 @@ static void altera_serial_putc(char c) writel ((unsigned char)c, &uart->txdata); } -static void altera_serial_puts(const char *s) -{ - while (*s != 0) { - serial_putc (*s++); - } -} - static int altera_serial_tstc(void) { return (readl (&uart->status) & NIOS_UART_RRDY); @@ -107,7 +100,7 @@ static struct serial_device altera_serial_drv = { .stop = NULL, .setbrg = altera_serial_setbrg, .putc = altera_serial_putc, - .puts = altera_serial_puts, + .puts = default_serial_puts, .getc = altera_serial_getc, .tstc = altera_serial_tstc, }; |