Browse Source

mtd: s3c2410: remove CONFIG_MTD_PARTITIONS test

MTD is now always build with partitioning support so this can be
removed.

Cc: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Jamie Iles <jamie@jamieiles.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Jamie Iles 14 years ago
parent
commit
78352282f3
2 changed files with 0 additions and 11 deletions
  1. 0 5
      arch/arm/mach-s3c2410/mach-amlm5900.c
  2. 0 6
      arch/arm/mach-s3c2410/mach-tct_hammer.c

+ 0 - 5
arch/arm/mach-s3c2410/mach-amlm5900.c

@@ -58,8 +58,6 @@
 #include <plat/cpu.h>
 #include <plat/cpu.h>
 #include <plat/gpio-cfg.h>
 #include <plat/gpio-cfg.h>
 
 
-#ifdef CONFIG_MTD_PARTITIONS
-
 #include <linux/mtd/mtd.h>
 #include <linux/mtd/mtd.h>
 #include <linux/mtd/partitions.h>
 #include <linux/mtd/partitions.h>
 #include <linux/mtd/map.h>
 #include <linux/mtd/map.h>
@@ -113,7 +111,6 @@ static struct platform_device amlm5900_device_nor = {
 	.num_resources	= 1,
 	.num_resources	= 1,
 	.resource	= &amlm5900_nor_resource,
 	.resource	= &amlm5900_nor_resource,
 };
 };
-#endif
 
 
 static struct map_desc amlm5900_iodesc[] __initdata = {
 static struct map_desc amlm5900_iodesc[] __initdata = {
 };
 };
@@ -158,9 +155,7 @@ static struct platform_device *amlm5900_devices[] __initdata = {
  	&s3c_device_rtc,
  	&s3c_device_rtc,
 	&s3c_device_usbgadget,
 	&s3c_device_usbgadget,
         &s3c_device_sdi,
         &s3c_device_sdi,
-#ifdef CONFIG_MTD_PARTITIONS
 	&amlm5900_device_nor,
 	&amlm5900_device_nor,
-#endif
 };
 };
 
 
 static void __init amlm5900_map_io(void)
 static void __init amlm5900_map_io(void)

+ 0 - 6
arch/arm/mach-s3c2410/mach-tct_hammer.c

@@ -49,8 +49,6 @@
 #include <plat/devs.h>
 #include <plat/devs.h>
 #include <plat/cpu.h>
 #include <plat/cpu.h>
 
 
-#ifdef CONFIG_MTD_PARTITIONS
-
 #include <linux/mtd/mtd.h>
 #include <linux/mtd/mtd.h>
 #include <linux/mtd/partitions.h>
 #include <linux/mtd/partitions.h>
 #include <linux/mtd/map.h>
 #include <linux/mtd/map.h>
@@ -91,8 +89,6 @@ static struct platform_device tct_hammer_device_nor = {
 	.resource	= &tct_hammer_nor_resource,
 	.resource	= &tct_hammer_nor_resource,
 };
 };
 
 
-#endif
-
 static struct map_desc tct_hammer_iodesc[] __initdata = {
 static struct map_desc tct_hammer_iodesc[] __initdata = {
 };
 };
 
 
@@ -133,9 +129,7 @@ static struct platform_device *tct_hammer_devices[] __initdata = {
 	&s3c_device_rtc,
 	&s3c_device_rtc,
 	&s3c_device_usbgadget,
 	&s3c_device_usbgadget,
 	&s3c_device_sdi,
 	&s3c_device_sdi,
-#ifdef CONFIG_MTD_PARTITIONS
 	&tct_hammer_device_nor,
 	&tct_hammer_device_nor,
-#endif
 };
 };
 
 
 static void __init tct_hammer_map_io(void)
 static void __init tct_hammer_map_io(void)