Changeset 30437


Ignore:
Timestamp:
2012-02-11T16:11:43+01:00 (5 years ago)
Author:
juhosg
Message:

ramips: rt305x: remove CONFIG_MTD_PARTITION ifdefery from machine files

Location:
trunk/target/linux/ramips/files/arch/mips/ralink/rt305x
Files:
22 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ramips/files/arch/mips/ralink/rt305x/mach-all0256n.c

    r29882 r30437  
    3131#define ALL0256N_BUTTONS_POLL_INTERVAL 20 
    3232 
    33 #ifdef CONFIG_MTD_PARTITIONS 
    3433static struct mtd_partition all0256n_partitions[] = { 
    3534        { 
     
    6059        } 
    6160}; 
    62 #endif /* CONFIG_MTD_PARTITIONS */ 
    63  
    6461 
    6562const struct flash_platform_data all0256n_flash = { 
    6663        .type           = "mx25l3205d", 
    67 #ifdef CONFIG_MTD_PARTITIONS 
    6864        .parts          = all0256n_partitions, 
    6965        .nr_parts       = ARRAY_SIZE(all0256n_partitions), 
    70 #endif 
    7166}; 
    7267 
  • trunk/target/linux/ramips/files/arch/mips/ralink/rt305x/mach-argus-atp52b.c

    r29871 r30437  
    6262}; 
    6363 
    64 #ifdef CONFIG_MTD_PARTITIONS 
    6564static struct mtd_partition argus_atp52b_partitions[] = { 
    6665        { 
     
    8988        } 
    9089}; 
    91 #endif /* CONFIG_MTD_PARTITIONS */ 
    9290 
    9391static struct physmap_flash_data argus_atp52b_flash_data = { 
    94 #ifdef CONFIG_MTD_PARTITIONS 
    9592        .nr_parts       = ARRAY_SIZE(argus_atp52b_partitions), 
    9693        .parts          = argus_atp52b_partitions, 
    97 #endif 
    9894}; 
    9995 
  • trunk/target/linux/ramips/files/arch/mips/ralink/rt305x/mach-bc2.c

    r28571 r30437  
    2828#define BC2_BUTTONS_POLL_INTERVAL       20 
    2929 
    30 #ifdef CONFIG_MTD_PARTITIONS 
    3130static struct mtd_partition bc2_partitions[] = { 
    3231        { 
     
    5958        } 
    6059}; 
    61 #endif /* CONFIG_MTD_PARTITIONS */ 
    6260 
    6361static struct physmap_flash_data bc2_flash_data = { 
    64 #ifdef CONFIG_MTD_PARTITIONS 
    6562        .nr_parts       = ARRAY_SIZE(bc2_partitions), 
    6663        .parts          = bc2_partitions, 
    67 #endif 
    6864}; 
    6965 
  • trunk/target/linux/ramips/files/arch/mips/ralink/rt305x/mach-dir-300-revb.c

    r27990 r30437  
    3232#define DIR_300B_BUTTONS_POLL_INTERVAL  20 
    3333 
    34 #ifdef CONFIG_MTD_PARTITIONS 
    3534static struct mtd_partition dir_300b_partitions[] = { 
    3635        { 
     
    6362        } 
    6463}; 
    65 #endif /* CONFIG_MTD_PARTITIONS */ 
    6664 
    6765static struct physmap_flash_data dir_300b_flash_data = { 
    68 #ifdef CONFIG_MTD_PARTITIONS 
    6966        .nr_parts       = ARRAY_SIZE(dir_300b_partitions), 
    7067        .parts          = dir_300b_partitions, 
    71 #endif 
    7268}; 
    7369 
  • trunk/target/linux/ramips/files/arch/mips/ralink/rt305x/mach-esr-9753.c

    r29603 r30437  
    3131#define ESR_9753_BUTTONS_POLL_INTERVAL  20 
    3232 
    33 #ifdef CONFIG_MTD_PARTITIONS 
    3433static struct mtd_partition esr_9753_partitions[] = { 
    3534        { 
     
    6261        } 
    6362}; 
    64 #endif /* CONFIG_MTD_PARTITIONS */ 
    6563 
    6664static struct physmap_flash_data esr_9753_flash_data = { 
    67 #ifdef CONFIG_MTD_PARTITIONS 
    6865        .nr_parts       = ARRAY_SIZE(esr_9753_partitions), 
    6966        .parts          = esr_9753_partitions, 
    70 #endif 
    7167}; 
    7268 
  • trunk/target/linux/ramips/files/arch/mips/ralink/rt305x/mach-f5d8235-v2.c

    r28051 r30437  
    7575}; 
    7676 
    77 #ifdef CONFIG_MTD_PARTITIONS 
    7877static struct mtd_partition f5d8235v2_partitions[] = { 
    7978        { 
     
    10099        } 
    101100}; 
    102 #endif /* CONFIG_MTD_PARTITIONS */ 
    103101 
    104102static struct physmap_flash_data f5d8235v2_flash_data = { 
    105 #ifdef CONFIG_MTD_PARTITIONS 
    106103        .nr_parts       = ARRAY_SIZE(f5d8235v2_partitions), 
    107104        .parts          = f5d8235v2_partitions, 
    108 #endif 
    109105}; 
    110106 
  • trunk/target/linux/ramips/files/arch/mips/ralink/rt305x/mach-fonera20n.c

    r27996 r30437  
    3232#define FONERA20N_BUTTONS_POLL_INTERVAL 20 
    3333 
    34 #ifdef CONFIG_MTD_PARTITIONS 
    3534static struct mtd_partition fonera20n_partitions[] = { 
    3635        { 
     
    6362        } 
    6463}; 
    65 #endif /* CONFIG_MTD_PARTITIONS */ 
    6664 
    6765static struct physmap_flash_data fonera20n_flash_data = { 
    68 #ifdef CONFIG_MTD_PARTITIONS 
    6966        .nr_parts       = ARRAY_SIZE(fonera20n_partitions), 
    7067        .parts          = fonera20n_partitions, 
    71 #endif 
    7268}; 
    7369 
  • trunk/target/linux/ramips/files/arch/mips/ralink/rt305x/mach-hw550-3g.c

    r28570 r30437  
    3434#define HW550_3G_BUTTONS_POLL_INTERVAL  20 
    3535 
    36 #ifdef CONFIG_MTD_PARTITIONS 
    3736static struct mtd_partition hw550_3g_partitions[] = { 
    3837        { 
     
    6564        } 
    6665}; 
    67 #endif /* CONFIG_MTD_PARTITIONS */ 
    6866 
    6967static struct physmap_flash_data hw550_3g_flash_data = { 
    70 #ifdef CONFIG_MTD_PARTITIONS 
    7168        .nr_parts       = ARRAY_SIZE(hw550_3g_partitions), 
    7269        .parts          = hw550_3g_partitions, 
    73 #endif 
    7470}; 
    7571 
  • trunk/target/linux/ramips/files/arch/mips/ralink/rt305x/mach-mofi3500-3gn.c

    r27996 r30437  
    3434#define MOFI3500_3GN_BUTTONS_POLL_INTERVAL      20 
    3535 
    36 #ifdef CONFIG_MTD_PARTITIONS 
    3736static struct mtd_partition mofi3500_3gn_partitions[] = { 
    3837        { 
     
    6564        } 
    6665}; 
    67 #endif /* CONFIG_MTD_PARTITIONS */ 
    6866 
    6967static struct physmap_flash_data mofi3500_3gn_flash_data = { 
    70 #ifdef CONFIG_MTD_PARTITIONS 
    7168        .nr_parts       = ARRAY_SIZE(mofi3500_3gn_partitions), 
    7269        .parts          = mofi3500_3gn_partitions, 
    73 #endif 
    7470}; 
    7571 
  • trunk/target/linux/ramips/files/arch/mips/ralink/rt305x/mach-nbg-419n.c

    r28078 r30437  
    3131#define NBG_419N_BUTTONS_POLL_INTERVAL  20 
    3232 
    33 #ifdef CONFIG_MTD_PARTITIONS 
    3433static struct mtd_partition nbg_419n_partitions[] = { 
    3534        { 
     
    5453        } 
    5554}; 
    56 #endif /* CONFIG_MTD_PARTITIONS */ 
    5755 
    5856static struct physmap_flash_data nbg_419n_flash_data = { 
    59 #ifdef CONFIG_MTD_PARTITIONS 
    6057        .nr_parts       = ARRAY_SIZE(nbg_419n_partitions), 
    6158        .parts          = nbg_419n_partitions, 
    62 #endif 
    6359}; 
    6460 
  • trunk/target/linux/ramips/files/arch/mips/ralink/rt305x/mach-nw718.c

    r28077 r30437  
    3535#define NW718_BUTTONS_POLL_INTERVAL     20 
    3636 
    37 #ifdef CONFIG_MTD_PARTITIONS 
    3837static struct mtd_partition nw718_partitions[] = { 
    3938        { 
     
    6665        } 
    6766}; 
    68 #define nw718_nr_parts          ARRAY_SIZE(nw718_partitions) 
    69 #else 
    70 #define nw718_nr_parts          0 
    71 #define nw718_partitions        NULL 
    72 #endif /* CONFIG_MTD_PARTITIONS */ 
    7367 
    7468static struct flash_platform_data nw718_flash_data = { 
    75         .nr_parts       = nw718_nr_parts, 
     69        .nr_parts       = ARRAY_SIZE(nw718_partitions), 
    7670        .parts          = nw718_partitions, 
    7771}; 
  • trunk/target/linux/ramips/files/arch/mips/ralink/rt305x/mach-omni-emb.c

    r29602 r30437  
    3131#define OMNI_EMB_GPIO_LED_WLAN          14 
    3232 
    33 #ifdef CONFIG_MTD_PARTITIONS 
    3433static struct mtd_partition emb_partitions[] = { 
    3534        { 
     
    6160        } 
    6261}; 
    63 #endif /* CONFIG_MTD_PARTITIONS */ 
    6462 
    6563static struct physmap_flash_data omni_emb_flash_data = { 
    66 #ifdef CONFIG_MTD_PARTITIONS 
    6764        .nr_parts       = ARRAY_SIZE(emb_partitions), 
    6865        .parts          = emb_partitions, 
    69 #endif 
    7066}; 
    7167 
  • trunk/target/linux/ramips/files/arch/mips/ralink/rt305x/mach-pwh2004.c

    r27990 r30437  
    2828#define PWH2004_BUTTONS_POLL_INTERVAL   20 
    2929 
    30 #ifdef CONFIG_MTD_PARTITIONS 
    3130static struct mtd_partition pwh2004_partitions[] = { 
    3231        { 
     
    5554        } 
    5655}; 
    57 #endif /* CONFIG_MTD_PARTITIONS */ 
    5856 
    5957static struct physmap_flash_data pwh2004_flash_data = { 
    60 #ifdef CONFIG_MTD_PARTITIONS 
    6158        .nr_parts       = ARRAY_SIZE(pwh2004_partitions), 
    6259        .parts          = pwh2004_partitions, 
    63 #endif 
    6460}; 
    6561 
  • trunk/target/linux/ramips/files/arch/mips/ralink/rt305x/mach-rt-g32-revb.c

    r27990 r30437  
    2828#define RT_G32B_BUTTONS_POLL_INTERVAL   20 
    2929 
    30 #ifdef CONFIG_MTD_PARTITIONS 
    3130static struct mtd_partition rt_g32b_partitions[] = { 
    3231        { 
     
    5958        } 
    6059}; 
    61 #endif /* CONFIG_MTD_PARTITIONS */ 
    6260 
    6361const struct flash_platform_data rt_g32b_flash = { 
    6462        .type           = "mx25l3205d", 
    65 #ifdef CONFIG_MTD_PARTITIONS 
    6663        .parts          = rt_g32b_partitions, 
    6764        .nr_parts       = ARRAY_SIZE(rt_g32b_partitions), 
    68 #endif 
    6965}; 
    7066 
  • trunk/target/linux/ramips/files/arch/mips/ralink/rt305x/mach-v22rw-2x2.c

    r27996 r30437  
    3030#define V22RW_2X2_BUTTONS_POLL_INTERVAL 20 
    3131 
    32 #ifdef CONFIG_MTD_PARTITIONS 
    3332static struct mtd_partition v22rw_2x2_partitions[] = { 
    3433        { 
     
    6160        } 
    6261}; 
    63 #endif /* CONFIG_MTD_PARTITIONS */ 
    6462 
    6563static struct physmap_flash_data v22rw_2x2_flash_data = { 
    66 #ifdef CONFIG_MTD_PARTITIONS 
    6764        .nr_parts       = ARRAY_SIZE(v22rw_2x2_partitions), 
    6865        .parts          = v22rw_2x2_partitions, 
    69 #endif 
    7066}; 
    7167 
  • trunk/target/linux/ramips/files/arch/mips/ralink/rt305x/mach-w502u.c

    r29969 r30437  
    3131#define W502U_BUTTONS_POLL_INTERVAL     20 
    3232 
    33 #ifdef CONFIG_MTD_PARTITIONS 
    3433static struct mtd_partition w502u_partitions[] = { 
    3534        { 
     
    6766        } 
    6867}; 
    69 #endif /* CONFIG_MTD_PARTITIONS */ 
    7068 
    7169static struct physmap_flash_data w502u_flash_data = { 
    72 #ifdef CONFIG_MTD_PARTITIONS 
    7370        .nr_parts       = ARRAY_SIZE(w502u_partitions), 
    7471        .parts          = w502u_partitions, 
    75 #endif 
    7672}; 
    7773 
  • trunk/target/linux/ramips/files/arch/mips/ralink/rt305x/mach-wcr150gn.c

    r29380 r30437  
    6161}; 
    6262 
    63 #ifdef CONFIG_MTD_PARTITIONS 
    6463static struct mtd_partition wcr150gn_partitions[] = { 
    6564        { 
     
    9291        } 
    9392}; 
    94 #endif /* CONFIG_MTD_PARTITIONS */ 
    9593 
    9694static struct physmap_flash_data wcr150gn_flash_data = { 
  • trunk/target/linux/ramips/files/arch/mips/ralink/rt305x/mach-whr-g300n.c

    r27990 r30437  
    3434#define WHR_G300N_BUTTONS_POLL_INTERVAL         20 
    3535 
    36 #ifdef CONFIG_MTD_PARTITIONS 
    3736static struct mtd_partition whr_g300n_partitions[] = { 
    3837        { 
     
    6968        } 
    7069}; 
    71 #endif /* CONFIG_MTD_PARTITIONS */ 
    7270 
    7371static struct physmap_flash_data whr_g300n_flash_data = { 
    74 #ifdef CONFIG_MTD_PARTITIONS 
    7572        .nr_parts       = ARRAY_SIZE(whr_g300n_partitions), 
    7673        .parts          = whr_g300n_partitions, 
    77 #endif 
    7874}; 
    7975 
  • trunk/target/linux/ramips/files/arch/mips/ralink/rt305x/mach-wl341v3.c

    r29910 r30437  
    3636#define WL341V3_BUTTONS_POLL_INTERVAL   20 
    3737 
    38 #ifdef CONFIG_MTD_PARTITIONS 
    3938static struct mtd_partition wl341v3_partitions[] = { 
    4039        { 
     
    7574        } 
    7675}; 
    77 #endif /* CONFIG_MTD_PARTITIONS */ 
    7876 
    7977static struct physmap_flash_data wl341v3_flash_data = { 
    80 #ifdef CONFIG_MTD_PARTITIONS 
    8178        .nr_parts       = ARRAY_SIZE(wl341v3_partitions), 
    8279        .parts          = wl341v3_partitions, 
    83 #endif 
    8480}; 
    8581 
  • trunk/target/linux/ramips/files/arch/mips/ralink/rt305x/mach-wl351.c

    r29604 r30437  
    7070}; 
    7171 
    72  
    73 #ifdef CONFIG_MTD_PARTITIONS 
    7472static struct mtd_partition wl351_partitions[] = { 
    7573        { 
     
    106104        } 
    107105}; 
    108 #endif /* CONFIG_MTD_PARTITIONS */ 
    109106 
    110107static struct physmap_flash_data wl351_flash_data = { 
    111 #ifdef CONFIG_MTD_PARTITIONS 
    112108        .nr_parts       = ARRAY_SIZE(wl351_partitions), 
    113109        .parts          = wl351_partitions, 
    114 #endif 
    115110}; 
    116111 
  • trunk/target/linux/ramips/files/arch/mips/ralink/rt305x/mach-wr512-3gn.c

    r28052 r30437  
    4545#define WR512_3GN_BUTTONS_POLL_INTERVAL 20 
    4646 
    47 #ifdef CONFIG_MTD_PARTITIONS 
    48  
    4947static struct mtd_partition wr512_3gn_partitions[] = { 
    5048        { 
     
    7876}; 
    7977 
    80 #endif /* CONFIG_MTD_PARTITIONS */ 
    81  
    8278static struct physmap_flash_data wr512_3gn_flash_data = { 
    83 #ifdef CONFIG_MTD_PARTITIONS 
    8479        .nr_parts       = ARRAY_SIZE(wr512_3gn_partitions), 
    8580        .parts          = wr512_3gn_partitions, 
    86 #endif 
    8781}; 
    8882 
  • trunk/target/linux/ramips/files/arch/mips/ralink/rt305x/mach-wr6202.c

    r30434 r30437  
    3434#define WR6202_GPIO_LED_WPS          14 
    3535 
    36 #ifdef CONFIG_MTD_PARTITIONS 
    3736static struct mtd_partition wr6202_partitions[] = { 
    3837        { 
     
    6059        } 
    6160}; 
    62 #endif /* CONFIG_MTD_PARTITIONS */ 
    6361 
    6462static struct physmap_flash_data wr6202_flash_data = { 
    65 #ifdef CONFIG_MTD_PARTITIONS 
    6663        .nr_parts       = ARRAY_SIZE(wr6202_partitions), 
    6764        .parts          = wr6202_partitions, 
    68 #endif 
    6965}; 
    7066 
Note: See TracChangeset for help on using the changeset viewer.