ar71xx: use the new ar7240 switch driver on the DIR-600-A1 as well (fixes #7563)
[openwrt.git] / target / linux / ar71xx / patches-2.6.34 / 102-mtd_m25p80_add_myloader_parser.patch
1 --- a/drivers/mtd/devices/m25p80.c
2 +++ b/drivers/mtd/devices/m25p80.c
3 @@ -928,6 +928,16 @@ static int __devinit m25p_probe(struct s
4 part_probes, &parts, 0);
5 }
6
7 +#ifdef CONFIG_MTD_MYLOADER_PARTS
8 + if (nr_parts <= 0) {
9 + static const char *part_probes[]
10 + = { "MyLoader", NULL, };
11 +
12 + nr_parts = parse_mtd_partitions(&flash->mtd,
13 + part_probes, &parts, 0);
14 + }
15 +#endif
16 +
17 if (nr_parts <= 0 && data && data->parts) {
18 parts = data->parts;
19 nr_parts = data->nr_parts;
This page took 0.043485 seconds and 5 git commands to generate.