aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-s3c/dev-i2c0.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/plat-s3c/dev-i2c0.c')
-rw-r--r--arch/arm/plat-s3c/dev-i2c0.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/arch/arm/plat-s3c/dev-i2c0.c b/arch/arm/plat-s3c/dev-i2c0.c
index 21870fd2ec98..2c0128c77c6e 100644
--- a/arch/arm/plat-s3c/dev-i2c0.c
+++ b/arch/arm/plat-s3c/dev-i2c0.c
@@ -37,12 +37,16 @@ static struct resource s3c_i2c_resource[] = {
37 37
38struct platform_device s3c_device_i2c0 = { 38struct platform_device s3c_device_i2c0 = {
39 .name = "s3c2410-i2c", 39 .name = "s3c2410-i2c",
40#ifdef CONFIG_S3C_DEV_I2C1
41 .id = 0,
42#else
40 .id = -1, 43 .id = -1,
44#endif
41 .num_resources = ARRAY_SIZE(s3c_i2c_resource), 45 .num_resources = ARRAY_SIZE(s3c_i2c_resource),
42 .resource = s3c_i2c_resource, 46 .resource = s3c_i2c_resource,
43}; 47};
44 48
45struct s3c2410_platform_i2c default_i2c_data __initdata = { 49static struct s3c2410_platform_i2c default_i2c_data0 __initdata = {
46 .flags = 0, 50 .flags = 0,
47 .slave_addr = 0x10, 51 .slave_addr = 0x10,
48 .bus_freq = 100*1000, 52 .bus_freq = 100*1000,
@@ -55,7 +59,7 @@ void __init s3c_i2c0_set_platdata(struct s3c2410_platform_i2c *pd)
55 struct s3c2410_platform_i2c *npd; 59 struct s3c2410_platform_i2c *npd;
56 60
57 if (!pd) 61 if (!pd)
58 pd = &default_i2c_data; 62 pd = &default_i2c_data0;
59 63
60 npd = kmemdup(pd, sizeof(struct s3c2410_platform_i2c), GFP_KERNEL); 64 npd = kmemdup(pd, sizeof(struct s3c2410_platform_i2c), GFP_KERNEL);
61 if (!npd) 65 if (!npd)