ARM: Exynos4: Fix the I2C.0 platform device's ID to 0 in the devs.c
HeungJun, Kim
riverful.kim at samsung.com
Mon Apr 30 07:24:56 EDT 2012
From: "HeungJun, Kim" <riverful.kim at samsung.com>
The #ifdef of CONFIG_S3C_DEV_I2C1 in devs.c, occurs to fail to get I2C0 adapter.
So, this patch removes #ifdef, and fixes 0 when I2C0 devices.
Signed-off-by: HeungJun, Kim <riverful.kim at samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park at samsung.com>
---
arch/arm/plat-samsung/devs.c | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
diff --git a/arch/arm/plat-samsung/devs.c b/arch/arm/plat-samsung/devs.c
index db32ec5..964a866 100644
--- a/arch/arm/plat-samsung/devs.c
+++ b/arch/arm/plat-samsung/devs.c
@@ -491,11 +491,7 @@ static struct resource s3c_i2c0_resource[] = {
struct platform_device s3c_device_i2c0 = {
.name = "s3c2410-i2c",
-#ifdef CONFIG_S3C_DEV_I2C1
.id = 0,
-#else
- .id = -1,
-#endif
.num_resources = ARRAY_SIZE(s3c_i2c0_resource),
.resource = s3c_i2c0_resource,
};
--
1.7.5.4
More information about the linux-arm-kernel
mailing list