ARM: S3C24XX: Use common macro to define resources on mach-tct_hammer.c
authorTushar Behera <tushar.behera@linaro.org>
Sat, 12 May 2012 07:12:25 +0000 (16:12 +0900)
committerKukjin Kim <kgene.kim@samsung.com>
Sat, 12 May 2012 07:12:25 +0000 (16:12 +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-tct_hammer.c

index 1114666..fe99028 100644 (file)
 
 #include "common.h"
 
-static struct resource tct_hammer_nor_resource = {
-               .start = 0x00000000,
-               .end   = 0x01000000 - 1,
-               .flags = IORESOURCE_MEM,
-};
+static struct resource tct_hammer_nor_resource =
+                       DEFINE_RES_MEM(0x00000000, SZ_16M);
 
 static struct mtd_partition tct_hammer_mtd_partitions[] = {
        {