Title: [5781] trunk/drivers/serial/bfin_5xx.c: use the DLAB macro to hide variant differences
- Revision
- 5781
- Author
- vapier
- Date
- 2008-12-02 02:25:16 -0600 (Tue, 02 Dec 2008)
Log Message
use the DLAB macro to hide variant differences
Modified Paths
Diff
Modified: trunk/drivers/serial/bfin_5xx.c (5780 => 5781)
--- trunk/drivers/serial/bfin_5xx.c 2008-12-02 08:10:24 UTC (rev 5780)
+++ trunk/drivers/serial/bfin_5xx.c 2008-12-02 08:25:16 UTC (rev 5781)
@@ -1250,7 +1250,7 @@
void bfin_serial_debug(const char *fmt, ...)
{
struct bfin_serial_port *uart = &bfin_serial_ports[0];
- unsigned short status, tmp;
+ unsigned short status;
unsigned long flags;
int i, count;
char buf[128];
@@ -1273,11 +1273,7 @@
status = UART_GET_LSR(uart);
} while (!(status & THRE));
-#ifndef CONFIG_BF54x
- tmp = UART_GET_LCR(uart);
- tmp &= ~DLAB;
- UART_PUT_LCR(uart, tmp);
-#endif
+ UART_CLEAR_DLAB(uart);
UART_PUT_CHAR(uart, buf[i]);
if (buf[i] == '\n') {
do {
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
http://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits