diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2010-05-25 17:00:08 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-06-04 22:37:18 +0200 |
commit | fadf34f0f05ca5ea02ffcd89544cd372bbdb739b (patch) | |
tree | 741ccde7886e05a0e6b0d21fd144453124af78e8 /drivers/char | |
parent | altera_uart: Don't take spinlock in already protected functions (diff) | |
download | linux-fadf34f0f05ca5ea02ffcd89544cd372bbdb739b.tar.xz linux-fadf34f0f05ca5ea02ffcd89544cd372bbdb739b.zip |
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>
Diffstat (limited to 'drivers/char')
0 files changed, 0 insertions, 0 deletions