projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add uclibc++
[openwrt.git]
/
openwrt
/
package
/
linux
/
kernel-source
/
arch
/
mips
/
brcm-boards
/
bcm947xx
/
setup.c
diff --git
a/openwrt/package/linux/kernel-source/arch/mips/brcm-boards/bcm947xx/setup.c
b/openwrt/package/linux/kernel-source/arch/mips/brcm-boards/bcm947xx/setup.c
index
e1b0050
..
2132c00
100644
(file)
--- a/
openwrt/package/linux/kernel-source/arch/mips/brcm-boards/bcm947xx/setup.c
+++ b/
openwrt/package/linux/kernel-source/arch/mips/brcm-boards/bcm947xx/setup.c
@@
-195,7
+195,8
@@
find_root(struct mtd_info *mtd, size_t size, struct mtd_partition *part)
/* found a TRX header */
if (le32_to_cpu(trx->magic) == TRX_MAGIC) {
/* found a TRX header */
if (le32_to_cpu(trx->magic) == TRX_MAGIC) {
- part->offset = le32_to_cpu(trx->offsets[1]);
+ part->offset = le32_to_cpu(trx->offsets[2]) ? :
+ le32_to_cpu(trx->offsets[1]);
part->size = le32_to_cpu(trx->len);
part->size -= part->offset;
part->size = le32_to_cpu(trx->len);
part->size -= part->offset;
This page took
0.021213 seconds
and
4
git commands to generate.