ramips: rt305x: remove CONFIG_MTD_PARTITION ifdefery from machine files
authorGabor Juhos <juhosg@openwrt.org>
Sat, 11 Feb 2012 15:11:43 +0000 (15:11 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Sat, 11 Feb 2012 15:11:43 +0000 (15:11 +0000)
SVN-Revision: 30437

22 files changed:
target/linux/ramips/files/arch/mips/ralink/rt305x/mach-all0256n.c
target/linux/ramips/files/arch/mips/ralink/rt305x/mach-argus-atp52b.c
target/linux/ramips/files/arch/mips/ralink/rt305x/mach-bc2.c
target/linux/ramips/files/arch/mips/ralink/rt305x/mach-dir-300-revb.c
target/linux/ramips/files/arch/mips/ralink/rt305x/mach-esr-9753.c
target/linux/ramips/files/arch/mips/ralink/rt305x/mach-f5d8235-v2.c
target/linux/ramips/files/arch/mips/ralink/rt305x/mach-fonera20n.c
target/linux/ramips/files/arch/mips/ralink/rt305x/mach-hw550-3g.c
target/linux/ramips/files/arch/mips/ralink/rt305x/mach-mofi3500-3gn.c
target/linux/ramips/files/arch/mips/ralink/rt305x/mach-nbg-419n.c
target/linux/ramips/files/arch/mips/ralink/rt305x/mach-nw718.c
target/linux/ramips/files/arch/mips/ralink/rt305x/mach-omni-emb.c
target/linux/ramips/files/arch/mips/ralink/rt305x/mach-pwh2004.c
target/linux/ramips/files/arch/mips/ralink/rt305x/mach-rt-g32-revb.c
target/linux/ramips/files/arch/mips/ralink/rt305x/mach-v22rw-2x2.c
target/linux/ramips/files/arch/mips/ralink/rt305x/mach-w502u.c
target/linux/ramips/files/arch/mips/ralink/rt305x/mach-wcr150gn.c
target/linux/ramips/files/arch/mips/ralink/rt305x/mach-whr-g300n.c
target/linux/ramips/files/arch/mips/ralink/rt305x/mach-wl341v3.c
target/linux/ramips/files/arch/mips/ralink/rt305x/mach-wl351.c
target/linux/ramips/files/arch/mips/ralink/rt305x/mach-wr512-3gn.c
target/linux/ramips/files/arch/mips/ralink/rt305x/mach-wr6202.c

index 297d9d29fa7a246d8afbe33411af435709bc2082..3a53e16d075dd4f2d3262a03b35dcfbcb9d84a2d 100644 (file)
@@ -30,7 +30,6 @@
 #define ALL0256N_GPIO_LED_RSSI_HIGH 13
 #define ALL0256N_BUTTONS_POLL_INTERVAL 20
 
-#ifdef CONFIG_MTD_PARTITIONS
 static struct mtd_partition all0256n_partitions[] = {
        {
                .name   = "u-boot",
@@ -59,15 +58,11 @@ static struct mtd_partition all0256n_partitions[] = {
                .size   = 0x3B0000,
        }
 };
-#endif /* CONFIG_MTD_PARTITIONS */
-
 
 const struct flash_platform_data all0256n_flash = {
        .type           = "mx25l3205d",
-#ifdef CONFIG_MTD_PARTITIONS
        .parts          = all0256n_partitions,
        .nr_parts       = ARRAY_SIZE(all0256n_partitions),
-#endif
 };
 
 struct spi_board_info all0256n_spi_slave_info[] __initdata = {
index be65690754fa4811bed172aba58480cd8380026c..d1c51702939bd737f2cbdcf58be5370d32c68d67 100644 (file)
@@ -61,7 +61,6 @@ static struct gpio_button argus_atp52b_gpio_buttons[] __initdata = {
        }
 };
 
-#ifdef CONFIG_MTD_PARTITIONS
 static struct mtd_partition argus_atp52b_partitions[] = {
        {
                .name   = "bootloader",
@@ -88,13 +87,10 @@ static struct mtd_partition argus_atp52b_partitions[] = {
                .size   = 0x690000,
        }
 };
-#endif /* CONFIG_MTD_PARTITIONS */
 
 static struct physmap_flash_data argus_atp52b_flash_data = {
-#ifdef CONFIG_MTD_PARTITIONS
        .nr_parts       = ARRAY_SIZE(argus_atp52b_partitions),
        .parts          = argus_atp52b_partitions,
-#endif
 };
 
 static void __init argus_atp52b_init(void)
index 21755cbdb78187e6290979389316b00c225eb688..bb225c1f1cc2dc2f9e0428635e787d1c8c43fd1c 100644 (file)
@@ -27,7 +27,6 @@
 
 #define BC2_BUTTONS_POLL_INTERVAL      20
 
-#ifdef CONFIG_MTD_PARTITIONS
 static struct mtd_partition bc2_partitions[] = {
        {
                .name   = "u-boot",
@@ -58,13 +57,10 @@ static struct mtd_partition bc2_partitions[] = {
                .size   = 0x7b0000,
        }
 };
-#endif /* CONFIG_MTD_PARTITIONS */
 
 static struct physmap_flash_data bc2_flash_data = {
-#ifdef CONFIG_MTD_PARTITIONS
        .nr_parts       = ARRAY_SIZE(bc2_partitions),
        .parts          = bc2_partitions,
-#endif
 };
 
 static struct gpio_led bc2_leds_gpio[] __initdata = {
index 622803672a2dd6a9068012e01751b2452cbc0076..70a2245b8dba82c3371c5d69eac79dd32ba9cf77 100644 (file)
@@ -31,7 +31,6 @@
 
 #define DIR_300B_BUTTONS_POLL_INTERVAL 20
 
-#ifdef CONFIG_MTD_PARTITIONS
 static struct mtd_partition dir_300b_partitions[] = {
        {
                .name   = "u-boot",
@@ -62,13 +61,10 @@ static struct mtd_partition dir_300b_partitions[] = {
                .size   = 0x3b0000,
        }
 };
-#endif /* CONFIG_MTD_PARTITIONS */
 
 static struct physmap_flash_data dir_300b_flash_data = {
-#ifdef CONFIG_MTD_PARTITIONS
        .nr_parts       = ARRAY_SIZE(dir_300b_partitions),
        .parts          = dir_300b_partitions,
-#endif
 };
 
 static struct gpio_led dir_300b_leds_gpio[] __initdata = {
index 88043a01d7824fe82cdf923c3bc5a455690bf1d2..fb3b7c8d66221fb3a321c23367a981543b944764 100644 (file)
@@ -30,7 +30,6 @@
 
 #define ESR_9753_BUTTONS_POLL_INTERVAL 20
 
-#ifdef CONFIG_MTD_PARTITIONS
 static struct mtd_partition esr_9753_partitions[] = {
        {
                .name   = "u-boot",
@@ -61,13 +60,10 @@ static struct mtd_partition esr_9753_partitions[] = {
                .size   = 0x3b0000,
        }
 };
-#endif /* CONFIG_MTD_PARTITIONS */
 
 static struct physmap_flash_data esr_9753_flash_data = {
-#ifdef CONFIG_MTD_PARTITIONS
        .nr_parts       = ARRAY_SIZE(esr_9753_partitions),
        .parts          = esr_9753_partitions,
-#endif
 };
 
 static struct gpio_led esr_9753_leds_gpio[] __initdata = {
index 0834c137d83a171d51ddc46707caff612d2f4ae9..6b25c8c3e91c723e34f03c9717614d3c2c822fa5 100644 (file)
@@ -74,7 +74,6 @@ static struct gpio_led f5d8235v2_leds_gpio[] __initdata = {
        }
 };
 
-#ifdef CONFIG_MTD_PARTITIONS
 static struct mtd_partition f5d8235v2_partitions[] = {
        {
                .name   = "u-boot",
@@ -99,13 +98,10 @@ static struct mtd_partition f5d8235v2_partitions[] = {
                .size   = 0x010000,
        }
 };
-#endif /* CONFIG_MTD_PARTITIONS */
 
 static struct physmap_flash_data f5d8235v2_flash_data = {
-#ifdef CONFIG_MTD_PARTITIONS
        .nr_parts       = ARRAY_SIZE(f5d8235v2_partitions),
        .parts          = f5d8235v2_partitions,
-#endif
 };
 
 
index e3450927535fa18389860328b45053b08449db26..2157ca7a7cb8fd3c7273d6d92f249f80818bd8c8 100644 (file)
@@ -31,7 +31,6 @@
 
 #define FONERA20N_BUTTONS_POLL_INTERVAL        20
 
-#ifdef CONFIG_MTD_PARTITIONS
 static struct mtd_partition fonera20n_partitions[] = {
        {
                .name   = "u-boot",
@@ -62,13 +61,10 @@ static struct mtd_partition fonera20n_partitions[] = {
                .size   = 0x7b0000,
        }
 };
-#endif /* CONFIG_MTD_PARTITIONS */
 
 static struct physmap_flash_data fonera20n_flash_data = {
-#ifdef CONFIG_MTD_PARTITIONS
        .nr_parts       = ARRAY_SIZE(fonera20n_partitions),
        .parts          = fonera20n_partitions,
-#endif
 };
 
 static struct gpio_led fonera20n_leds_gpio[] __initdata = {
index 5a3114a051eaf2ece5803f4b9e23c0ded5e29d0b..21587812c46efa82becc432985794d27f37b5a9c 100644 (file)
@@ -33,7 +33,6 @@
 
 #define HW550_3G_BUTTONS_POLL_INTERVAL 20
 
-#ifdef CONFIG_MTD_PARTITIONS
 static struct mtd_partition hw550_3g_partitions[] = {
        {
                .name   = "u-boot",
@@ -64,13 +63,10 @@ static struct mtd_partition hw550_3g_partitions[] = {
                .size   = 0x7b0000,
        }
 };
-#endif /* CONFIG_MTD_PARTITIONS */
 
 static struct physmap_flash_data hw550_3g_flash_data = {
-#ifdef CONFIG_MTD_PARTITIONS
        .nr_parts       = ARRAY_SIZE(hw550_3g_partitions),
        .parts          = hw550_3g_partitions,
-#endif
 };
 
 static struct gpio_led hw550_3g_leds_gpio[] __initdata = {
index 309d78450067e622cc300131943c432d8c266c45..e3273ba70e0fe501e672f6eb63118e78842c1cb4 100644 (file)
@@ -33,7 +33,6 @@
 
 #define MOFI3500_3GN_BUTTONS_POLL_INTERVAL     20
 
-#ifdef CONFIG_MTD_PARTITIONS
 static struct mtd_partition mofi3500_3gn_partitions[] = {
        {
                .name   = "u-boot",
@@ -64,13 +63,10 @@ static struct mtd_partition mofi3500_3gn_partitions[] = {
                .size   = 0x7b0000,
        }
 };
-#endif /* CONFIG_MTD_PARTITIONS */
 
 static struct physmap_flash_data mofi3500_3gn_flash_data = {
-#ifdef CONFIG_MTD_PARTITIONS
        .nr_parts       = ARRAY_SIZE(mofi3500_3gn_partitions),
        .parts          = mofi3500_3gn_partitions,
-#endif
 };
 
 static struct gpio_led mofi3500_3gn_leds_gpio[] __initdata = {
index 422765423d89880dcfb222a38ad4398eb4edad5b..63071da656b7454a5f75307cc3a8c49a4954d279 100644 (file)
@@ -30,7 +30,6 @@
 
 #define NBG_419N_BUTTONS_POLL_INTERVAL 20
 
-#ifdef CONFIG_MTD_PARTITIONS
 static struct mtd_partition nbg_419n_partitions[] = {
        {
                .name   = "u-boot",
@@ -53,13 +52,10 @@ static struct mtd_partition nbg_419n_partitions[] = {
                .size   = 0x3b0000,
        }
 };
-#endif /* CONFIG_MTD_PARTITIONS */
 
 static struct physmap_flash_data nbg_419n_flash_data = {
-#ifdef CONFIG_MTD_PARTITIONS
        .nr_parts       = ARRAY_SIZE(nbg_419n_partitions),
        .parts          = nbg_419n_partitions,
-#endif
 };
 
 static struct gpio_led nbg_419n_leds_gpio[] __initdata = {
index 9d2f47f9ded669190358ad094521276277d0bc06..917357ec12fed6bbc81a39ceecd6270462b2a039 100644 (file)
@@ -34,7 +34,6 @@
 
 #define NW718_BUTTONS_POLL_INTERVAL    20
 
-#ifdef CONFIG_MTD_PARTITIONS
 static struct mtd_partition nw718_partitions[] = {
        {
                .name   = "u-boot",
@@ -65,14 +64,9 @@ static struct mtd_partition nw718_partitions[] = {
                .size   = 0x3a0000,
        }
 };
-#define nw718_nr_parts         ARRAY_SIZE(nw718_partitions)
-#else
-#define nw718_nr_parts         0
-#define nw718_partitions       NULL
-#endif /* CONFIG_MTD_PARTITIONS */
 
 static struct flash_platform_data nw718_flash_data = {
-       .nr_parts       = nw718_nr_parts,
+       .nr_parts       = ARRAY_SIZE(nw718_partitions),
        .parts          = nw718_partitions,
 };
 
index 9fb4cd2ff6d1be4f865c04de44644ccdaa68b1cf..a6c1a163a36a518bee142b8ae7c4f5e4e549dd55 100644 (file)
@@ -30,7 +30,6 @@
 #define OMNI_EMB_GPIO_LED_STATUS       9
 #define OMNI_EMB_GPIO_LED_WLAN         14
 
-#ifdef CONFIG_MTD_PARTITIONS
 static struct mtd_partition emb_partitions[] = {
        {
                .name   = "uboot",
@@ -60,13 +59,10 @@ static struct mtd_partition emb_partitions[] = {
                .size   = 0x7B0000,
        }
 };
-#endif /* CONFIG_MTD_PARTITIONS */
 
 static struct physmap_flash_data omni_emb_flash_data = {
-#ifdef CONFIG_MTD_PARTITIONS
        .nr_parts       = ARRAY_SIZE(emb_partitions),
        .parts          = emb_partitions,
-#endif
 };
 
 static struct gpio_led omni_emb_leds_gpio[] __initdata = {
index c321e1108865cf8f818ddf9b712b97e6d34a4e32..4eb1f4b99eb10587707407c342e7a9749dff35f0 100644 (file)
@@ -27,7 +27,6 @@
 #define PWH2004_GPIO_LED_WIFI          14
 #define PWH2004_BUTTONS_POLL_INTERVAL  20
 
-#ifdef CONFIG_MTD_PARTITIONS
 static struct mtd_partition pwh2004_partitions[] = {
        {
                .name   = "u-boot",
@@ -54,13 +53,10 @@ static struct mtd_partition pwh2004_partitions[] = {
                .size   = 0x7b0000,
        }
 };
-#endif /* CONFIG_MTD_PARTITIONS */
 
 static struct physmap_flash_data pwh2004_flash_data = {
-#ifdef CONFIG_MTD_PARTITIONS
        .nr_parts       = ARRAY_SIZE(pwh2004_partitions),
        .parts          = pwh2004_partitions,
-#endif
 };
 
 static struct gpio_led pwh2004_leds_gpio[] __initdata = {
index 274466c2105cf8ee4c5c2ae16278b6bed0296e49..6963c1744e18a1e3b776dfade7f36a0830dd497d 100644 (file)
@@ -27,7 +27,6 @@
 
 #define RT_G32B_BUTTONS_POLL_INTERVAL  20
 
-#ifdef CONFIG_MTD_PARTITIONS
 static struct mtd_partition rt_g32b_partitions[] = {
        {
                .name   = "u-boot",
@@ -58,14 +57,11 @@ static struct mtd_partition rt_g32b_partitions[] = {
                .size   = 0x3b0000,
        }
 };
-#endif /* CONFIG_MTD_PARTITIONS */
 
 const struct flash_platform_data rt_g32b_flash = {
        .type           = "mx25l3205d",
-#ifdef CONFIG_MTD_PARTITIONS
        .parts          = rt_g32b_partitions,
        .nr_parts       = ARRAY_SIZE(rt_g32b_partitions),
-#endif
 };
 
 struct spi_board_info __initdata rt_g32b_spi_slave_info[] = {
index 44ebd06d5252e6278701cf9b54f61ce19003dc46..6dee249440656c0745e88660bd539353d8908567 100644 (file)
@@ -29,7 +29,6 @@
 
 #define V22RW_2X2_BUTTONS_POLL_INTERVAL        20
 
-#ifdef CONFIG_MTD_PARTITIONS
 static struct mtd_partition v22rw_2x2_partitions[] = {
        {
                .name   = "u-boot",
@@ -60,13 +59,10 @@ static struct mtd_partition v22rw_2x2_partitions[] = {
                .size   = 0x3b0000,
        }
 };
-#endif /* CONFIG_MTD_PARTITIONS */
 
 static struct physmap_flash_data v22rw_2x2_flash_data = {
-#ifdef CONFIG_MTD_PARTITIONS
        .nr_parts       = ARRAY_SIZE(v22rw_2x2_partitions),
        .parts          = v22rw_2x2_partitions,
-#endif
 };
 
 static struct gpio_led v22rw_2x2_leds_gpio[] __initdata = {
index c90884cac19c02d8835b8673317398f149e31190..b2140265958dec67bfc5fb8f049c7ad8ca1bfc07 100644 (file)
@@ -30,7 +30,6 @@
 
 #define W502U_BUTTONS_POLL_INTERVAL    20
 
-#ifdef CONFIG_MTD_PARTITIONS
 static struct mtd_partition w502u_partitions[] = {
        {
                .name   = "u-boot",
@@ -66,13 +65,10 @@ static struct mtd_partition w502u_partitions[] = {
                .size   = 0x7a0000,
        }
 };
-#endif /* CONFIG_MTD_PARTITIONS */
 
 static struct physmap_flash_data w502u_flash_data = {
-#ifdef CONFIG_MTD_PARTITIONS
        .nr_parts       = ARRAY_SIZE(w502u_partitions),
        .parts          = w502u_partitions,
-#endif
 };
 
 static struct gpio_led w502u_leds_gpio[] __initdata = {
index 0da27359b1c2c53a3a2afed67712b0cbc5f9a871..8e3ed733a27ad84bea5d2045c3916ffcf4c8a26e 100644 (file)
@@ -60,7 +60,6 @@ static struct gpio_button wcr150gn_gpio_buttons[] __initdata = {
        }
 };
 
-#ifdef CONFIG_MTD_PARTITIONS
 static struct mtd_partition wcr150gn_partitions[] = {
        {
                .name   = "bootloader",
@@ -91,7 +90,6 @@ static struct mtd_partition wcr150gn_partitions[] = {
                .size   = 0x3b0000,
        }
 };
-#endif /* CONFIG_MTD_PARTITIONS */
 
 static struct physmap_flash_data wcr150gn_flash_data = {
 #ifdef CONFIG_MTD_PARTITIONS
index 49ab0fd00978e180576a7566bd475ddca01aae40..394c45accae01ff3aeddb66a8fd546b45fe640fd 100644 (file)
@@ -33,7 +33,6 @@
 
 #define WHR_G300N_BUTTONS_POLL_INTERVAL                20
 
-#ifdef CONFIG_MTD_PARTITIONS
 static struct mtd_partition whr_g300n_partitions[] = {
        {
                .name   = "u-boot",
@@ -68,13 +67,10 @@ static struct mtd_partition whr_g300n_partitions[] = {
                .size   = 0x3a0000,
        }
 };
-#endif /* CONFIG_MTD_PARTITIONS */
 
 static struct physmap_flash_data whr_g300n_flash_data = {
-#ifdef CONFIG_MTD_PARTITIONS
        .nr_parts       = ARRAY_SIZE(whr_g300n_partitions),
        .parts          = whr_g300n_partitions,
-#endif
 };
 
 static struct gpio_led whr_g300n_leds_gpio[] __initdata = {
index 9341be3beed63b725789fe36c383e746efb1f265..a3c4485584d7a67d5ab7f9cf65b577a2fb88afdc 100644 (file)
@@ -35,7 +35,6 @@
 
 #define WL341V3_BUTTONS_POLL_INTERVAL  20
 
-#ifdef CONFIG_MTD_PARTITIONS
 static struct mtd_partition wl341v3_partitions[] = {
        {
                .name   = "u-boot",
@@ -74,13 +73,10 @@ static struct mtd_partition wl341v3_partitions[] = {
                .size   = 0x400000,
        }
 };
-#endif /* CONFIG_MTD_PARTITIONS */
 
 static struct physmap_flash_data wl341v3_flash_data = {
-#ifdef CONFIG_MTD_PARTITIONS
        .nr_parts       = ARRAY_SIZE(wl341v3_partitions),
        .parts          = wl341v3_partitions,
-#endif
 };
 
 static struct gpio_led wl341v3_leds_gpio[] __initdata = {
index 3ebc7fee8b8f9985c5405d707f4a06b5eb88eb64..ff2a1c2e56fa9f1dd07c5c5c5b87ca42986595a3 100644 (file)
@@ -69,8 +69,6 @@ static struct gpio_button wl351_gpio_buttons[] __initdata = {
        }
 };
 
-
-#ifdef CONFIG_MTD_PARTITIONS
 static struct mtd_partition wl351_partitions[] = {
        {
                .name   = "u-boot",
@@ -105,13 +103,10 @@ static struct mtd_partition wl351_partitions[] = {
                .size   = 0x3a0000,
        }
 };
-#endif /* CONFIG_MTD_PARTITIONS */
 
 static struct physmap_flash_data wl351_flash_data = {
-#ifdef CONFIG_MTD_PARTITIONS
        .nr_parts       = ARRAY_SIZE(wl351_partitions),
        .parts          = wl351_partitions,
-#endif
 };
 
 
index 52b3cde2b4c15d3fe500da4aac8766ffb5df1743..d49a243622015ed490df7b89b72f5c0abf79d33e 100644 (file)
@@ -44,8 +44,6 @@
 
 #define WR512_3GN_BUTTONS_POLL_INTERVAL        20
 
-#ifdef CONFIG_MTD_PARTITIONS
-
 static struct mtd_partition wr512_3gn_partitions[] = {
        {
                .name   = "u-boot",
@@ -77,13 +75,9 @@ static struct mtd_partition wr512_3gn_partitions[] = {
        }
 };
 
-#endif /* CONFIG_MTD_PARTITIONS */
-
 static struct physmap_flash_data wr512_3gn_flash_data = {
-#ifdef CONFIG_MTD_PARTITIONS
        .nr_parts       = ARRAY_SIZE(wr512_3gn_partitions),
        .parts          = wr512_3gn_partitions,
-#endif
 };
 
 static struct gpio_led wr512_3gn_leds_gpio[] __initdata = {
index 64ea20113c55974eae7c23cb44ddafa2e4347912..9609b18285e95cb7839b9e8cc736c370420c2cdc 100644 (file)
@@ -33,7 +33,6 @@
 #define WR6202_GPIO_LED_3G          13
 #define WR6202_GPIO_LED_WPS         14
 
-#ifdef CONFIG_MTD_PARTITIONS
 static struct mtd_partition wr6202_partitions[] = {
        {
                .name   = "uboot",
@@ -59,13 +58,10 @@ static struct mtd_partition wr6202_partitions[] = {
                .size   = 0x6B0000,
        }
 };
-#endif /* CONFIG_MTD_PARTITIONS */
 
 static struct physmap_flash_data wr6202_flash_data = {
-#ifdef CONFIG_MTD_PARTITIONS
        .nr_parts       = ARRAY_SIZE(wr6202_partitions),
        .parts          = wr6202_partitions,
-#endif
 };
 
 static struct gpio_led wr6202_leds_gpio[] __initdata = {