]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/mpc8349ads/pci.c
GCC-4.x fixes: clean up global data pointer initialization for all boards.
[karo-tx-uboot.git] / board / mpc8349ads / pci.c
index c5594248d88fb48094b5fbf531b456869f44b4a7..319e35c9703c00b788f1b0989f2879bb42b938f1 100644 (file)
@@ -26,6 +26,8 @@
 #include <asm/mpc8349_pci.h>
 #include <i2c.h>
 
+DECLARE_GLOBAL_DATA_PTR;
+
 #ifdef CONFIG_PCI
 
 /* System RAM mapped to PCI space */
@@ -127,7 +129,6 @@ pib_init(void)
 void
 pci_init_board(void)
 {
-       DECLARE_GLOBAL_DATA_PTR;
        volatile immap_t *      immr;
        volatile clk8349_t *    clk;
        volatile law8349_t *    pci_law;