]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - arch/blackfin/cpu/serial.c
Move DECLARE_GLOBAL_DATA_PTR to file scope
[people/ms/u-boot.git] / arch / blackfin / cpu / serial.c
index 901cb97a1cae8e1072302edea216fe61e7c6f3be..650202e24f907eb06400ed08fe92499d6bcb4ff9 100644 (file)
@@ -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);
 }