diff options
author | Naveen Krishna Chatradhi <ch.naveen@samsung.com> | 2011-07-16 06:30:09 +0200 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2011-07-20 19:09:59 +0200 |
commit | 696f6fc1be92a8e117b4d07de34bf2d514a9c079 (patch) | |
tree | 663f0fc37c4a9a66eb7dbbf2f6c6f995490c7a4e /arch/arm/plat-samsung/dev-i2c0.c | |
parent | ARM: SAMSUNG: Use generic set_plat_data function (diff) | |
download | linux-696f6fc1be92a8e117b4d07de34bf2d514a9c079.tar.xz linux-696f6fc1be92a8e117b4d07de34bf2d514a9c079.zip |
ARM: SAMSUNG: Cleanup I2C code in plat-samsung
Removes the duplication of default info structure in
dev-i2c[0 ~ 7].c files
Signed-off-by: Naveen Krishna Chatradhi <ch.naveen@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch/arm/plat-samsung/dev-i2c0.c')
-rw-r--r-- | arch/arm/plat-samsung/dev-i2c0.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/plat-samsung/dev-i2c0.c b/arch/arm/plat-samsung/dev-i2c0.c index c2a7b93cc059..f8251f5098bd 100644 --- a/arch/arm/plat-samsung/dev-i2c0.c +++ b/arch/arm/plat-samsung/dev-i2c0.c @@ -48,7 +48,7 @@ struct platform_device s3c_device_i2c0 = { .resource = s3c_i2c_resource, }; -static struct s3c2410_platform_i2c default_i2c_data0 __initdata = { +struct s3c2410_platform_i2c default_i2c_data __initdata = { .flags = 0, .slave_addr = 0x10, .frequency = 100*1000, @@ -60,7 +60,7 @@ void __init s3c_i2c0_set_platdata(struct s3c2410_platform_i2c *pd) struct s3c2410_platform_i2c *npd; if (!pd) - pd = &default_i2c_data0; + pd = &default_i2c_data; npd = s3c_set_platdata(pd, sizeof(struct s3c2410_platform_i2c), &s3c_device_i2c0); |