diff options
author | Naveen Krishna Chatradhi <ch.naveen@samsung.com> | 2011-07-16 00:26:14 -0400 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2011-07-20 13:09:54 -0400 |
commit | 2c2e2c27e621e75313a6d0574afc0eedae3da84e (patch) | |
tree | ebe456fca978cb1a0cd320069ab1a14ba8b3f090 /arch/arm/plat-samsung/dev-i2c6.c | |
parent | cf2e9c7b48f1e6c715e30952e5a3a5ef5cd0f8e4 (diff) |
ARM: SAMSUNG: Use generic set_plat_data function
Calls the generic s3c_set_platdata function instead.
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-i2c6.c')
-rw-r--r-- | arch/arm/plat-samsung/dev-i2c6.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/arch/arm/plat-samsung/dev-i2c6.c b/arch/arm/plat-samsung/dev-i2c6.c index 4083108908a8..cf539cc708cc 100644 --- a/arch/arm/plat-samsung/dev-i2c6.c +++ b/arch/arm/plat-samsung/dev-i2c6.c | |||
@@ -58,11 +58,9 @@ void __init s3c_i2c6_set_platdata(struct s3c2410_platform_i2c *pd) | |||
58 | if (!pd) | 58 | if (!pd) |
59 | pd = &default_i2c_data6; | 59 | pd = &default_i2c_data6; |
60 | 60 | ||
61 | npd = kmemdup(pd, sizeof(struct s3c2410_platform_i2c), GFP_KERNEL); | 61 | npd = s3c_set_platdata(pd, sizeof(struct s3c2410_platform_i2c), |
62 | if (!npd) | 62 | &s3c_device_i2c6); |
63 | printk(KERN_ERR "%s: no memory for platform data\n", __func__); | ||
64 | else if (!npd->cfg_gpio) | ||
65 | npd->cfg_gpio = s3c_i2c6_cfg_gpio; | ||
66 | 63 | ||
67 | s3c_device_i2c6.dev.platform_data = npd; | 64 | if (!npd->cfg_gpio) |
65 | npd->cfg_gpio = s3c_i2c6_cfg_gpio; | ||
68 | } | 66 | } |