From: Tobias Klauser Date: Tue, 25 May 2010 15:00:08 +0000 (+0200) Subject: altera_uart: Simplify altera_uart_console_putc X-Git-Tag: v2.6.35-rc2~16^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fadf34f0f05ca5ea02ffcd89544cd372bbdb739b;p=pandora-kernel.git 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 Signed-off-by: Tobias Klauser Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed