]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ARM: S3C24XX: Use common macro to define resources on mach-osiris.c
authorTushar Behera <tushar.behera@linaro.org>
Sat, 12 May 2012 21:47:07 +0000 (06:47 +0900)
committerKukjin Kim <kgene.kim@samsung.com>
Sat, 12 May 2012 21:47:07 +0000 (06:47 +0900)
Cc: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
arch/arm/mach-s3c24xx/mach-osiris.c

index c5daeb612a88a35235c0f879e6789e0a94f0c1c1..95d07725502490502f7301ef0b1bfb61f2fe31b8 100644 (file)
@@ -244,16 +244,8 @@ static struct s3c2410_platform_nand __initdata osiris_nand_info = {
 /* PCMCIA control and configuration */
 
 static struct resource osiris_pcmcia_resource[] = {
-       [0] = {
-               .start  = 0x0f000000,
-               .end    = 0x0f100000,
-               .flags  = IORESOURCE_MEM,
-       },
-       [1] = {
-               .start  = 0x0c000000,
-               .end    = 0x0c100000,
-               .flags  = IORESOURCE_MEM,
-       }
+       [0] = DEFINE_RES_MEM(0x0f000000, SZ_1M),
+       [1] = DEFINE_RES_MEM(0x0c000000, SZ_1M),
 };
 
 static struct platform_device osiris_pcmcia = {