ramips: rt305x: remove CONFIG_MTD_PARTITION ifdefery from machine files
SVN-Revision: 30437
This commit is contained in:
parent
f2dd67dc09
commit
ba4c9b3a8f
22 changed files with 1 additions and 93 deletions
|
@ -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 = {
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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 = {
|
||||
|
|
|
@ -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 = {
|
||||
|
|
|
@ -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 = {
|
||||
|
|
|
@ -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
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -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 = {
|
||||
|
|
|
@ -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 = {
|
||||
|
|
|
@ -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 = {
|
||||
|
|
|
@ -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 = {
|
||||
|
|
|
@ -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,
|
||||
};
|
||||
|
||||
|
|
|
@ -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 = {
|
||||
|
|
|
@ -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 = {
|
||||
|
|
|
@ -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[] = {
|
||||
|
|
|
@ -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 = {
|
||||
|
|
|
@ -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 = {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 = {
|
||||
|
|
|
@ -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 = {
|
||||
|
|
|
@ -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
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -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 = {
|
||||
|
|
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue