aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRajeshwari Shinde2013-01-13 13:49:36 -0600
committerMinkyu Kang2013-01-13 23:45:30 -0600
commitd04df3c6adf7b025d4f68d4f558975d3beb32544 (patch)
treea75c7d1fe7370de0a53ccb994fc9f73bb62f44a0
parenta2468dedef569863e1243e802fbe3aa7565e1de1 (diff)
downloadu-boot-d04df3c6adf7b025d4f68d4f558975d3beb32544.tar.gz
u-boot-d04df3c6adf7b025d4f68d4f558975d3beb32544.tar.xz
u-boot-d04df3c6adf7b025d4f68d4f558975d3beb32544.zip
I2C: S3C24X0: Resolve build error for VCMA9
This patch resolves the following build errors for I2C driver in VCMA9: In file included from s3c24x0_i2c.c:40:0: s3c24x0_i2c.h:38:17: error: field 'id' has incomplete type s3c24x0_i2c.c:70:39: error: 'CONFIG_MAX_I2C_NUM' undeclared here (not in a function) s3c24x0_i2c.c:70:31: warning: 'i2c_bus' defined but not used [-Wunused-variable] s3c24x0_i2c.c:72:12: warning: 'i2c_busses' defined but not used [-Wunused-variable] Signed-off-by: Rajeshwari Shinde <rajeshwari.s@samsung.com> Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
-rw-r--r--drivers/i2c/s3c24x0_i2c.c4
-rw-r--r--drivers/i2c/s3c24x0_i2c.h3
2 files changed, 4 insertions, 3 deletions
diff --git a/drivers/i2c/s3c24x0_i2c.c b/drivers/i2c/s3c24x0_i2c.c
index 7ec01ec62..769a2ba5b 100644
--- a/drivers/i2c/s3c24x0_i2c.c
+++ b/drivers/i2c/s3c24x0_i2c.c
@@ -67,9 +67,11 @@
67 * variables to live in SRAM 67 * variables to live in SRAM
68 */ 68 */
69static unsigned int g_current_bus __attribute__((section(".data"))); 69static unsigned int g_current_bus __attribute__((section(".data")));
70#ifdef CONFIG_OF_CONTROL
71static int i2c_busses __attribute__((section(".data")));
70static struct s3c24x0_i2c_bus i2c_bus[CONFIG_MAX_I2C_NUM] 72static struct s3c24x0_i2c_bus i2c_bus[CONFIG_MAX_I2C_NUM]
71 __attribute__((section(".data"))); 73 __attribute__((section(".data")));
72static int i2c_busses __attribute__((section(".data"))); 74#endif
73 75
74#if !(defined CONFIG_EXYNOS4 || defined CONFIG_EXYNOS5) 76#if !(defined CONFIG_EXYNOS4 || defined CONFIG_EXYNOS5)
75static int GetI2CSDA(void) 77static int GetI2CSDA(void)
diff --git a/drivers/i2c/s3c24x0_i2c.h b/drivers/i2c/s3c24x0_i2c.h
index 1243bf1b1..a56d749de 100644
--- a/drivers/i2c/s3c24x0_i2c.h
+++ b/drivers/i2c/s3c24x0_i2c.h
@@ -35,7 +35,6 @@ struct s3c24x0_i2c_bus {
35 int node; /* device tree node */ 35 int node; /* device tree node */
36 int bus_num; /* i2c bus number */ 36 int bus_num; /* i2c bus number */
37 struct s3c24x0_i2c *regs; 37 struct s3c24x0_i2c *regs;
38 enum periph_id id; 38 int id;
39}; 39};
40
41#endif /* _S3C24X0_I2C_H */ 40#endif /* _S3C24X0_I2C_H */