aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/serial/bfin_5xx.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/serial/bfin_5xx.c b/drivers/serial/bfin_5xx.c
index 04eeef05e93c..976de91307c3 100644
--- a/drivers/serial/bfin_5xx.c
+++ b/drivers/serial/bfin_5xx.c
@@ -1,7 +1,7 @@
1/* 1/*
2 * Blackfin On-Chip Serial Driver 2 * Blackfin On-Chip Serial Driver
3 * 3 *
4 * Copyright 2006-2007 Analog Devices Inc. 4 * Copyright 2006-2008 Analog Devices Inc.
5 * 5 *
6 * Enter bugs at http://blackfin.uclinux.org/ 6 * Enter bugs at http://blackfin.uclinux.org/
7 * 7 *
@@ -126,13 +126,13 @@ static int kgdb_entry_state;
126void kgdb_put_debug_char(int chr) 126void kgdb_put_debug_char(int chr)
127{ 127{
128 struct bfin_serial_port *uart; 128 struct bfin_serial_port *uart;
129 129
130 if (CONFIG_KGDB_UART_PORT < 0 130 if (CONFIG_KGDB_UART_PORT < 0
131 || CONFIG_KGDB_UART_PORT >= BFIN_UART_NR_PORTS) 131 || CONFIG_KGDB_UART_PORT >= BFIN_UART_NR_PORTS)
132 uart = &bfin_serial_ports[0]; 132 uart = &bfin_serial_ports[0];
133 else 133 else
134 uart = &bfin_serial_ports[CONFIG_KGDB_UART_PORT]; 134 uart = &bfin_serial_ports[CONFIG_KGDB_UART_PORT];
135 135
136 while (!(UART_GET_LSR(uart) & THRE)) { 136 while (!(UART_GET_LSR(uart) & THRE)) {
137 SSYNC(); 137 SSYNC();
138 } 138 }
@@ -152,7 +152,7 @@ int kgdb_get_debug_char(void)
152 uart = &bfin_serial_ports[0]; 152 uart = &bfin_serial_ports[0];
153 else 153 else
154 uart = &bfin_serial_ports[CONFIG_KGDB_UART_PORT]; 154 uart = &bfin_serial_ports[CONFIG_KGDB_UART_PORT];
155 155
156 while(!(UART_GET_LSR(uart) & DR)) { 156 while(!(UART_GET_LSR(uart) & DR)) {
157 SSYNC(); 157 SSYNC();
158 } 158 }