summaryrefslogtreecommitdiff
path: root/drivers/serial/serial_arc.c
diff options
context:
space:
mode:
authorAlison Wang <b18965@freescale.com>2016-03-02 11:00:38 +0800
committerSimon Glass <sjg@chromium.org>2016-03-14 15:34:50 -0600
commitab761ce9f9a88067c5834ce6660ba90493a783ea (patch)
tree9cf57334a2b67cdd629c18f10e141e085b19bdbc /drivers/serial/serial_arc.c
parent055457ef25357d1921a8ed13ebfd32c526f12106 (diff)
dm: serial: Remove duplicated carriage return character
As the handling for carriage return and line feed is done in the common DM driver serial-uclass.c, such handling in some serial DM drivers is duplicated and need to be removed. Signed-off-by: Alison Wang <alison.wang@nxp.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'drivers/serial/serial_arc.c')
-rw-r--r--drivers/serial/serial_arc.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/serial/serial_arc.c b/drivers/serial/serial_arc.c
index 7dbb49f814..6292eb136b 100644
--- a/drivers/serial/serial_arc.c
+++ b/drivers/serial/serial_arc.c
@@ -68,9 +68,6 @@ static int arc_serial_putc(struct udevice *dev, const char c)
struct arc_serial_platdata *plat = dev->platdata;
struct arc_serial_regs *const regs = plat->reg;
- if (c == '\n')
- arc_serial_putc(dev, '\r');
-
while (!(readb(&regs->status) & UART_TXEMPTY))
;