summaryrefslogtreecommitdiff
path: root/openwrt/package/linux/kernel-source/arch/mips/brcm-boards/bcm947xx/setup.c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <mail@waldemar-brodkorb.de>2005-04-02 12:12:58 +0000
committerWaldemar Brodkorb <mail@waldemar-brodkorb.de>2005-04-02 12:12:58 +0000
commit8f80e98934c5bb973caad880bd17fddf709046a3 (patch)
tree055a93ec854a535cea0fb03637e40e82661918d7 /openwrt/package/linux/kernel-source/arch/mips/brcm-boards/bcm947xx/setup.c
parentd2a31e404c9392a3f532a99e20ea65c96493748c (diff)
downloadmtk-20170518-8f80e98934c5bb973caad880bd17fddf709046a3.zip
mtk-20170518-8f80e98934c5bb973caad880bd17fddf709046a3.tar.gz
mtk-20170518-8f80e98934c5bb973caad880bd17fddf709046a3.tar.bz2
lzma loader patch from oleg, great thanks good work, saves another 300 kb flashmemory
SVN-Revision: 513
Diffstat (limited to 'openwrt/package/linux/kernel-source/arch/mips/brcm-boards/bcm947xx/setup.c')
-rw-r--r--openwrt/package/linux/kernel-source/arch/mips/brcm-boards/bcm947xx/setup.c3
1 files changed, 2 insertions, 1 deletions
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
--- 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) {
- 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;