summaryrefslogtreecommitdiff
path: root/cpu/bf561
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2007-09-15 20:48:41 +0200
committerWolfgang Denk <wd@denx.de>2007-09-15 20:48:41 +0200
commit1218abf1b5817a39a82399b4b928b00750575bda (patch)
treeeea14f9a563edd02bbc62b8aa493efd270044485 /cpu/bf561
parent66b3f24d665be678a9dbb125b1e84185400f63b5 (diff)
downloadu-boot-imx-1218abf1b5817a39a82399b4b928b00750575bda.zip
u-boot-imx-1218abf1b5817a39a82399b4b928b00750575bda.tar.gz
u-boot-imx-1218abf1b5817a39a82399b4b928b00750575bda.tar.bz2
Fix cases where DECLARE_GLOBAL_DATA_PTR was not declared as global
Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'cpu/bf561')
-rw-r--r--cpu/bf561/serial.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpu/bf561/serial.c b/cpu/bf561/serial.c
index 7f5c695..bc5a4f5 100644
--- a/cpu/bf561/serial.c
+++ b/cpu/bf561/serial.c
@@ -52,6 +52,8 @@
#include "serial.h"
#include <asm/io.h>
+DECLARE_GLOBAL_DATA_PTR;
+
unsigned long pll_div_fact;
void calc_baud(void)
@@ -74,7 +76,6 @@ void calc_baud(void)
void serial_setbrg(void)
{
int i;
- DECLARE_GLOBAL_DATA_PTR;
calc_baud();