diff options
Diffstat (limited to 'arch/arm/plat-samsung/dev-ts.c')
-rw-r--r-- | arch/arm/plat-samsung/dev-ts.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/arch/arm/plat-samsung/dev-ts.c b/arch/arm/plat-samsung/dev-ts.c index 3e4bd8147bf4..82543f0248ac 100644 --- a/arch/arm/plat-samsung/dev-ts.c +++ b/arch/arm/plat-samsung/dev-ts.c | |||
@@ -45,16 +45,6 @@ struct platform_device s3c_device_ts = { | |||
45 | 45 | ||
46 | void __init s3c24xx_ts_set_platdata(struct s3c2410_ts_mach_info *pd) | 46 | void __init s3c24xx_ts_set_platdata(struct s3c2410_ts_mach_info *pd) |
47 | { | 47 | { |
48 | struct s3c2410_ts_mach_info *npd; | 48 | s3c_set_platdata(pd, sizeof(struct s3c2410_ts_mach_info), |
49 | 49 | &s3c_device_ts); | |
50 | if (!pd) { | ||
51 | printk(KERN_ERR "%s: no platform data\n", __func__); | ||
52 | return; | ||
53 | } | ||
54 | |||
55 | npd = kmemdup(pd, sizeof(struct s3c2410_ts_mach_info), GFP_KERNEL); | ||
56 | if (!npd) | ||
57 | printk(KERN_ERR "%s: no memory for platform data\n", __func__); | ||
58 | |||
59 | s3c_device_ts.dev.platform_data = npd; | ||
60 | } | 50 | } |