]> git.baikalelectronics.ru Git - kernel.git/commit
altera_uart: Simplify altera_uart_console_putc
authorTobias Klauser <tklauser@distanz.ch>
Tue, 25 May 2010 15:00:08 +0000 (17:00 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 4 Jun 2010 20:37:18 +0000 (13:37 -0700)
commitf26fa871709948fa3094e568ba947e249b64f403
tree741ccde7886e05a0e6b0d21fd144453124af78e8
parentf65635c4f159461bb1fd00c7a6772ba337cad414
altera_uart: Simplify altera_uart_console_putc

The check for the TRDY flag after writing the character is not needed.
Also do a cpu_relax() inside the loop.

Pass a struct uart_port to altera_uart_console_putc, so we do not need
to get it (and dereference pointers) for every character.

Cc: Thomas Chou <thomas@wytron.com.tw>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/serial/altera_uart.c