Fix cases where DECLARE_GLOBAL_DATA_PTR was not declared as global
[oweals/u-boot.git] / cpu / mpc86xx / speed.c
index 312ca128277350241c30dfa61229892283ef0aaf..23161ca8cbed2b084eb75b64dd12fe238a07c7e4 100644 (file)
@@ -29,6 +29,7 @@
 #include <mpc86xx.h>
 #include <asm/processor.h>
 
+DECLARE_GLOBAL_DATA_PTR;
 
 void get_sys_info(sys_info_t *sysInfo)
 {
@@ -96,7 +97,6 @@ void get_sys_info(sys_info_t *sysInfo)
 
 int get_clocks(void)
 {
-       DECLARE_GLOBAL_DATA_PTR;
        sys_info_t sys_info;
 
        get_sys_info(&sys_info);