projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
678eb9b
)
mtd: bcm63xxpart: don't assume NVRAM is always the fourth partition
author
Jonas Gorski
<
[email protected]
>
Sat, 17 Dec 2011 12:58:16 +0000
(13:58 +0100)
committer
David Woodhouse
<
[email protected]
>
Mon, 9 Jan 2012 18:20:58 +0000
(18:20 +0000)
Instead of referencing the sizes of fixed partitions, use the
precomputed CFE/NVRAM lengths.
Signed-off-by: Jonas Gorski <
[email protected]
>
Signed-off-by: Artem Bityutskiy <
[email protected]
>
Signed-off-by: David Woodhouse <
[email protected]
>
drivers/mtd/bcm63xxpart.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/bcm63xxpart.c
b/drivers/mtd/bcm63xxpart.c
index 17e137080a6b1ee8c5b52112a99c27b26951819d..6afc4aa3c622ab858ddc24c4fad663fa04d384ba 100644
(file)
--- a/
drivers/mtd/bcm63xxpart.c
+++ b/
drivers/mtd/bcm63xxpart.c
@@
-165,8
+165,8
@@
static int bcm63xx_parse_cfe_partitions(struct mtd_info *master,
/* Global partition "linux" to make easy firmware upgrade */
curpart++;
parts[curpart].name = "linux";
- parts[curpart].offset =
parts[0].size
;
- parts[curpart].size = master->size -
parts[0].size - parts[3].size
;
+ parts[curpart].offset =
cfelen
;
+ parts[curpart].size = master->size -
cfelen - nvramlen
;
for (i = 0; i < nrparts; i++)
pr_info("Partition %d is %s offset %lx and length %lx\n", i,