summaryrefslogtreecommitdiff
path: root/board/keymile
diff options
context:
space:
mode:
authorHeiko Schocher <hs@denx.de>2008-10-17 13:52:51 +0200
committerWolfgang Denk <wd@denx.de>2008-10-18 21:54:04 +0200
commita21ca95f8b9dca22714952b348e4905ac157b5cd (patch)
tree2d1fa9efebc62a32d80d1b79c2783df4d6c75191 /board/keymile
parentcac9cf7875c2a01d63422820ed4732a9bdf5ab7b (diff)
downloadu-boot-imx-a21ca95f8b9dca22714952b348e4905ac157b5cd.zip
u-boot-imx-a21ca95f8b9dca22714952b348e4905ac157b5cd.tar.gz
u-boot-imx-a21ca95f8b9dca22714952b348e4905ac157b5cd.tar.bz2
mgsuvd: fix compiler warning when using soft_i2c driver
Signed-off-by: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'board/keymile')
-rw-r--r--board/keymile/common/common.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/board/keymile/common/common.c b/board/keymile/common/common.c
index 61276d2..e47928d 100644
--- a/board/keymile/common/common.c
+++ b/board/keymile/common/common.c
@@ -34,6 +34,7 @@
#if defined(CONFIG_HARD_I2C) || defined(CONFIG_SOFT_I2C)
#include <i2c.h>
#endif
+#include <asm/io.h>
extern int i2c_soft_read_pin (void);
@@ -400,7 +401,7 @@ static void set_scl (int state)
static int get_sda (void)
{
- return i2c_soft_read_pin ();
+ return I2C_READ;
}
static int get_scl (void)