surprise :p
[openwrt-10.03/.git] / target / linux / generic-2.6 / patches-2.6.25 / 910-m25p80_redboot_partitions.patch
1 diff -Nur a/drivers/mtd/devices/m25p80.c b/drivers/mtd/devices/m25p80.c
2 --- a/drivers/mtd/devices/m25p80.c      2008-07-06 14:36:59.000000000 +0200
3 +++ b/drivers/mtd/devices/m25p80.c      2008-07-06 15:17:48.000000000 +0200
4 @@ -631,12 +631,10 @@
5                 struct mtd_partition    *parts = NULL;
6                 int                     nr_parts = 0;
7  
8 -#ifdef CONFIG_MTD_CMDLINE_PARTS
9 -               static const char *part_probes[] = { "cmdlinepart", NULL, };
10 +               static const char *part_probes[] = { "RedBoot", "cmdlinepart", NULL, };
11  
12                 nr_parts = parse_mtd_partitions(&flash->mtd,
13                                 part_probes, &parts, 0);
14 -#endif
15  
16                 if (nr_parts <= 0 && data && data->parts) {
17                         parts = data->parts;