summaryrefslogtreecommitdiff
path: root/common/soft_i2c.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/soft_i2c.c')
-rw-r--r--common/soft_i2c.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/common/soft_i2c.c b/common/soft_i2c.c
index b3642da..bffcd44 100644
--- a/common/soft_i2c.c
+++ b/common/soft_i2c.c
@@ -39,6 +39,10 @@
/* #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)