atheros: fix up the wlan mac address if the board data is missing
[openwrt.git] / target / linux / ar71xx / patches-2.6.28 / 102-mtd_m25p80_add_myloader_parser.patch
1 --- a/drivers/mtd/devices/m25p80.c
2 +++ b/drivers/mtd/devices/m25p80.c
3 @@ -711,12 +711,17 @@ static int __devinit m25p_probe(struct s
4 struct mtd_partition *parts = NULL;
5 int nr_parts = 0;
6
7 + static const char *part_probes[] = {
8 #ifdef CONFIG_MTD_CMDLINE_PARTS
9 - static const char *part_probes[] = { "cmdlinepart", NULL, };
10 + "cmdlinepart",
11 +#endif
12 +#ifdef CONFIG_MTD_MYLOADER_PARTS
13 + "MyLoader",
14 +#endif
15 + NULL, };
16
17 nr_parts = parse_mtd_partitions(&flash->mtd,
18 part_probes, &parts, 0);
19 -#endif
20
21 if (nr_parts <= 0 && data && data->parts) {
22 parts = data->parts;
This page took 0.046736 seconds and 5 git commands to generate.