]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/trab/memory.c
GCC-4.x fixes: clean up global data pointer initialization for all boards.
[karo-tx-uboot.git] / board / trab / memory.c
index 91044130988475c42ec0705b77481fbbeeed0fbc..4097892b9efbdff1df8d6865bebf0bff44f62a6d 100644 (file)
@@ -454,10 +454,11 @@ int memory_post_tests (unsigned long start, unsigned long size)
 }
 
 #if 0
+DECLARE_GLOBAL_DATA_PTR;
+
 int memory_post_test (int flags)
 {
        int ret = 0;
-       DECLARE_GLOBAL_DATA_PTR;
        bd_t *bd = gd->bd;
        unsigned long memsize = (bd->bi_memsize >= 256 << 20 ?
                                 256 << 20 : bd->bi_memsize) - (1 << 20);