brcm47xx: use old partition names again for kernel 3.8
[openwrt.git] / target / linux / brcm47xx / patches-3.8 / 028-mtd-bcm47xxpart-use-old-part-names.patch
1 --- a/drivers/mtd/bcm47xxpart.c
2 +++ b/drivers/mtd/bcm47xxpart.c
3 @@ -134,7 +134,7 @@ static int bcm47xxpart_parse(struct mtd_
4                         trx = (struct trx_header *)buf;
5  
6                         trx_part = curr_part;
7 -                       bcm47xxpart_add_part(&parts[curr_part++], "firmware",
8 +                       bcm47xxpart_add_part(&parts[curr_part++], "linux",
9                                              offset, 0);
10  
11                         i = 0;
12 @@ -147,7 +147,7 @@ static int bcm47xxpart_parse(struct mtd_
13                                 i++;
14                         }
15  
16 -                       bcm47xxpart_add_part(&parts[curr_part++], "linux",
17 +                       bcm47xxpart_add_part(&parts[curr_part++], "kernel",
18                                              offset + trx->offset[i], 0);
19                         i++;
20