summaryrefslogtreecommitdiff
path: root/arch/blackfin/cpu/serial.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/blackfin/cpu/serial.c')
-rw-r--r--arch/blackfin/cpu/serial.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/blackfin/cpu/serial.c b/arch/blackfin/cpu/serial.c
index 901cb97a1c..650202e24f 100644
--- a/arch/blackfin/cpu/serial.c
+++ b/arch/blackfin/cpu/serial.c
@@ -42,6 +42,8 @@
#include <asm/blackfin.h>
#include <asm/mach-common/bits/uart.h>
+DECLARE_GLOBAL_DATA_PTR;
+
#ifdef CONFIG_UART_CONSOLE
#include "serial.h"
@@ -95,7 +97,6 @@ void serial_set_baud(uint32_t baud)
*/
void serial_setbrg(void)
{
- DECLARE_GLOBAL_DATA_PTR;
serial_set_baud(gd->baudrate);
}