source: trunk/target/linux/ar71xx/patches-2.6.34/104-mtd_m25p80_add_redboot_parser.patch @ 20141

Last change on this file since 20141 was 20141, checked in by acoul, 6 years ago

ar71xx: add 2.6.34 preliminary support (patches)

File size: 469 bytes
  • drivers/mtd/devices/m25p80.c

    a b static int __devinit m25p_probe(struct s 
    932932                } 
    933933#endif 
    934934 
     935#ifdef CONFIG_MTD_REDBOOT_PARTS 
     936                if (nr_parts <= 0) { 
     937                        static const char *part_probes[] 
     938                                        = { "RedBoot", NULL, }; 
     939 
     940                        nr_parts = parse_mtd_partitions(&flash->mtd, 
     941                                        part_probes, &parts, 0); 
     942                } 
     943#endif 
    935944                if (nr_parts <= 0 && data && data->parts) { 
    936945                        parts = data->parts; 
    937946                        nr_parts = data->nr_parts; 
Note: See TracBrowser for help on using the repository browser.