Browse Source

ARM: S3C24XX: Use common macro to define resources on mach-amlm5900.c

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>
Tushar Behera 13 years ago
parent
commit
7d4aa909c8
1 changed files with 2 additions and 7 deletions
  1. 2 7
      arch/arm/mach-s3c24xx/mach-amlm5900.c

+ 2 - 7
arch/arm/mach-s3c24xx/mach-amlm5900.c

@@ -65,13 +65,8 @@
 
 #include "common.h"
 
-static struct resource amlm5900_nor_resource = {
-		.start = 0x00000000,
-		.end   = 0x01000000 - 1,
-		.flags = IORESOURCE_MEM,
-};
-
-
+static struct resource amlm5900_nor_resource =
+			DEFINE_RES_MEM(0x00000000, SZ_16M);
 
 static struct mtd_partition amlm5900_mtd_partitions[] = {
 	{