source: branches/backfire/target/linux/ar71xx/patches-2.6.32/102-mtd_m25p80_add_myloader_parser.patch @ 23713

Last change on this file since 23713 was 23713, checked in by jow, 6 years ago

[backfire] ar71xx: refresh patches

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

    a b static int __devinit m25p_probe(struct s 
    868868                                        part_probes, &parts, 0); 
    869869                } 
    870870 
     871#ifdef CONFIG_MTD_MYLOADER_PARTS 
     872                if (nr_parts <= 0) { 
     873                        static const char *part_probes[] 
     874                                        = { "MyLoader", NULL, }; 
     875 
     876                        nr_parts = parse_mtd_partitions(&flash->mtd, 
     877                                        part_probes, &parts, 0); 
     878                } 
     879#endif 
     880 
    871881                if (nr_parts <= 0 && data && data->parts) { 
    872882                        parts = data->parts; 
    873883                        nr_parts = data->nr_parts; 
Note: See TracBrowser for help on using the repository browser.