aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-s3c64xx/mach-crag6410.c
diff options
context:
space:
mode:
authorTushar Behera <tushar.behera@linaro.org>2012-05-12 03:12:26 -0400
committerKukjin Kim <kgene.kim@samsung.com>2012-05-12 03:12:26 -0400
commit8ebf148a6807c8a2c5a013b72fc834b739cc85be (patch)
treef7e0a723d4d88138134b0c4763ed69dc90d3e886 /arch/arm/mach-s3c64xx/mach-crag6410.c
parent178e712601be883040abfca9186d969bb5c427f8 (diff)
ARM: S3C64XX: Use common macro to define resources on mach-crag6410.c
Cc: Ben Dooks <ben-linux@fluff.org> Signed-off-by: Tushar Behera <tushar.behera@linaro.org> Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch/arm/mach-s3c64xx/mach-crag6410.c')
-rw-r--r--arch/arm/mach-s3c64xx/mach-crag6410.c26
1 files changed, 5 insertions, 21 deletions
diff --git a/arch/arm/mach-s3c64xx/mach-crag6410.c b/arch/arm/mach-s3c64xx/mach-crag6410.c
index e20bf5835365..164467cbb7ea 100644
--- a/arch/arm/mach-s3c64xx/mach-crag6410.c
+++ b/arch/arm/mach-s3c64xx/mach-crag6410.c
@@ -232,21 +232,10 @@ static struct platform_device crag6410_gpio_keydev = {
232}; 232};
233 233
234static struct resource crag6410_dm9k_resource[] = { 234static struct resource crag6410_dm9k_resource[] = {
235 [0] = { 235 [0] = DEFINE_RES_MEM(S3C64XX_PA_XM0CSN5, 2),
236 .start = S3C64XX_PA_XM0CSN5, 236 [1] = DEFINE_RES_MEM(S3C64XX_PA_XM0CSN5 + (1 << 8), 2),
237 .end = S3C64XX_PA_XM0CSN5 + 1, 237 [2] = DEFINE_RES_NAMED(S3C_EINT(17), 1, NULL, IORESOURCE_IRQ \
238 .flags = IORESOURCE_MEM, 238 | IORESOURCE_IRQ_HIGHLEVEL),
239 },
240 [1] = {
241 .start = S3C64XX_PA_XM0CSN5 + (1 << 8),
242 .end = S3C64XX_PA_XM0CSN5 + (1 << 8) + 1,
243 .flags = IORESOURCE_MEM,
244 },
245 [2] = {
246 .start = S3C_EINT(17),
247 .end = S3C_EINT(17),
248 .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHLEVEL,
249 },
250}; 239};
251 240
252static struct dm9000_plat_data mini6410_dm9k_pdata = { 241static struct dm9000_plat_data mini6410_dm9k_pdata = {
@@ -262,12 +251,7 @@ static struct platform_device crag6410_dm9k_device = {
262}; 251};
263 252
264static struct resource crag6410_mmgpio_resource[] = { 253static struct resource crag6410_mmgpio_resource[] = {
265 [0] = { 254 [0] = DEFINE_RES_MEM_NAMED(S3C64XX_PA_XM0CSN4, 1, "dat"),
266 .name = "dat",
267 .start = S3C64XX_PA_XM0CSN4 + 1,
268 .end = S3C64XX_PA_XM0CSN4 + 1,
269 .flags = IORESOURCE_MEM,
270 },
271}; 255};
272 256
273static struct platform_device crag6410_mmgpio = { 257static struct platform_device crag6410_mmgpio = {