summaryrefslogtreecommitdiff
path: root/cpu/mpc8220/i2c.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpu/mpc8220/i2c.c')
-rw-r--r--cpu/mpc8220/i2c.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpu/mpc8220/i2c.c b/cpu/mpc8220/i2c.c
index 62f7c0f..d67936d 100644
--- a/cpu/mpc8220/i2c.c
+++ b/cpu/mpc8220/i2c.c
@@ -23,6 +23,8 @@
#include <common.h>
+DECLARE_GLOBAL_DATA_PTR;
+
#ifdef CONFIG_HARD_I2C
#include <mpc8220.h>
@@ -235,7 +237,6 @@ void i2c_init (int speed, int saddr)
static int mpc_get_fdr (int speed)
{
- DECLARE_GLOBAL_DATA_PTR;
static int fdr = -1;
if (fdr == -1) {