diff options
author | Vasily Khoruzhick <anarsoul@gmail.com> | 2010-02-18 17:32:27 +0100 |
---|---|---|
committer | Ben Dooks <ben-linux@fluff.org> | 2010-02-24 02:52:14 +0100 |
commit | 0fe1309b4db2a994d0b8347cea034cf58cb4b312 (patch) | |
tree | 6361321db0f4598aaecf1de81bb64600affd3547 /arch | |
parent | ARM: SAMSUNG: Eliminate plat-s3c (diff) | |
download | linux-0fe1309b4db2a994d0b8347cea034cf58cb4b312.tar.xz linux-0fe1309b4db2a994d0b8347cea034cf58cb4b312.zip |
ARM: SAMSUNG: Add resources description for s3c24xx ts driver
Without resources description driver fails during initialization.
Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/plat-s3c24xx/devs.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/arch/arm/plat-s3c24xx/devs.c b/arch/arm/plat-s3c24xx/devs.c index 986d4e5408f5..8c6de1c9968f 100644 --- a/arch/arm/plat-s3c24xx/devs.c +++ b/arch/arm/plat-s3c24xx/devs.c @@ -158,9 +158,27 @@ void __init s3c24xx_fb_set_platdata(struct s3c2410fb_mach_info *pd) } /* Touchscreen */ + +static struct resource s3c_ts_resource[] = { + [0] = { + .start = S3C24XX_PA_ADC, + .end = S3C24XX_PA_ADC + S3C24XX_SZ_ADC - 1, + .flags = IORESOURCE_MEM, + }, + [1] = { + .start = IRQ_TC, + .end = IRQ_TC, + .flags = IORESOURCE_IRQ, + }, + +}; + struct platform_device s3c_device_ts = { .name = "s3c2410-ts", .id = -1, + .dev.parent = &s3c_device_adc.dev, + .num_resources = ARRAY_SIZE(s3c_ts_resource), + .resource = s3c_ts_resource, }; EXPORT_SYMBOL(s3c_device_ts); |