]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - examples/mem_to_mem_idma2intr.c
GCC-4.x fixes: clean up global data pointer initialization for all boards.
[karo-tx-uboot.git] / examples / mem_to_mem_idma2intr.c
index 3a269c9082a588732605340ea16a42fec0293d4b..3ff28041f81267bdf548a2a4b7fd062e8e59de5a 100644 (file)
@@ -30,6 +30,8 @@
 #include <common.h>
 #include <exports.h>
 
+DECLARE_GLOBAL_DATA_PTR;
+
 #define STANDALONE
 
 #ifndef STANDALONE                     /* Linked into/Part of  PPCBoot */
@@ -346,8 +348,6 @@ static uint dpbase = 0;
 
 uint dpalloc (uint size, uint align)
 {
-       DECLARE_GLOBAL_DATA_PTR;
-
        volatile immap_t *immr = (immap_t *) CFG_IMMR;
        uint retloc;
        uint align_mask, off;