source: trunk/target/linux/ar71xx/patches-2.6.33/109-mtd-wrt160nl-trx-parser.patch @ 19960

Last change on this file since 19960 was 19960, checked in by juhosg, 7 years ago

ar71xx: refresh 2.6.33 patches

File size: 1.3 KB
  • drivers/mtd/devices/m25p80.c

    a b static int __devinit m25p_probe(struct s 
    941941                                        part_probes, &parts, 0); 
    942942                } 
    943943#endif 
     944 
     945#ifdef CONFIG_MTD_WRT160NL_PARTS 
     946                if (nr_parts <= 0) { 
     947                        static const char *part_probes[] 
     948                                        = { "wrt160nl", NULL, }; 
     949 
     950                        nr_parts = parse_mtd_partitions(&flash->mtd, 
     951                                        part_probes, &parts, 0); 
     952                } 
     953#endif 
    944954                if (nr_parts <= 0 && data && data->parts) { 
    945955                        parts = data->parts; 
    946956                        nr_parts = data->nr_parts; 
  • drivers/mtd/Kconfig

    a b config MTD_AR7_PARTS 
    181181        ---help--- 
    182182          TI AR7 partitioning support 
    183183 
     184config MTD_WRT160NL_PARTS 
     185        tristate "Linksys WRT160NL partitioning support" 
     186        depends on MTD_PARTITIONS && AR71XX_MACH_WRT160NL 
     187        ---help--- 
     188           Linksys WRT160NL partitioning support 
     189 
    184190config MTD_MYLOADER_PARTS 
    185191        tristate "MyLoader partition parsing" 
    186192        depends on MTD_PARTITIONS && (ADM5120 || ATHEROS_AR231X || ATHEROS_AR71XX) 
  • drivers/mtd/Makefile

    a b obj-$(CONFIG_MTD_REDBOOT_PARTS) += redbo 
    1212obj-$(CONFIG_MTD_CMDLINE_PARTS) += cmdlinepart.o 
    1313obj-$(CONFIG_MTD_AFS_PARTS)     += afs.o 
    1414obj-$(CONFIG_MTD_AR7_PARTS)     += ar7part.o 
     15obj-$(CONFIG_MTD_WRT160NL_PARTS) += wrt160nl_part.o 
    1516obj-$(CONFIG_MTD_OF_PARTS)      += ofpart.o 
    1617obj-$(CONFIG_MTD_MYLOADER_PARTS) += myloader.o 
    1718 
Note: See TracBrowser for help on using the repository browser.