]> git.sur5r.net Git - u-boot/blobdiff - common/soft_i2c.c
GCC-4.x fixes: clean up global data pointer initialization for all boards.
[u-boot] / common / soft_i2c.c
index b3642dafc24564b44b151db1e4f0cffd50b3473e..bffcd4405ec5bbe5d550ec471f6e5f4657bd33fa 100644 (file)
 
 /* #define     DEBUG_I2C       */
 
+#ifdef DEBUG_I2C
+DECLARE_GLOBAL_DATA_PTR;
+#endif
+
 
 /*-----------------------------------------------------------------------
  * Definitions
@@ -53,7 +57,6 @@
 
 #ifdef DEBUG_I2C
 #define PRINTD(fmt,args...)    do {    \
-       DECLARE_GLOBAL_DATA_PTR;        \
        if (gd->have_console)           \
                printf (fmt ,##args);   \
        } while (0)