Thread (2 messages) 2 messages, 1 author, 2012-05-15

Exynos4: Fix the I2C.0 platform device's ID to 0 in the devs.c

From: HeungJun, Kim <hidden>
Date: 2012-05-15 04:04:03
Also in: linux-samsung-soc

and Ping again?
-----Original Message-----
From: HeungJun, Kim [mailto:riverful.kim at samsung.com]
Sent: Monday, April 30, 2012 8:25 PM
To: linux-arm-kernel at lists.infradead.org
Cc: linux-samsung-soc at vger.kernel.org; HeungJun, Kim; Kyungmin Park
Subject: ARM: Exynos4: Fix the I2C.0 platform device's ID to 0 in the devs.c

From: "HeungJun, Kim" <redacted>

The #ifdef of CONFIG_S3C_DEV_I2C1 in devs.c, occurs to fail to get I2C0
adapter.
quoted hunk ↗ jump to hunk
So, this patch removes #ifdef, and fixes 0 when I2C0 devices.

Signed-off-by: HeungJun, Kim <redacted>
Signed-off-by: Kyungmin Park <kyungmin.park@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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help