diff options
author | wbx <wbx@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-04-02 12:12:58 +0000 |
---|---|---|
committer | wbx <wbx@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-04-02 12:12:58 +0000 |
commit | 21db875713e9dab2d6560f121b8e856fd182a773 (patch) | |
tree | 242788637a26f3f16ea5b2cf9912f9274b46ad51 /package/linux/kernel-source/arch/mips/brcm-boards/bcm947xx/setup.c | |
parent | 59cf9955ada396f84414e779e62d9742b7451d66 (diff) |
lzma loader patch from oleg, great thanks good work, saves another 300 kb flashmemory
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@513 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/linux/kernel-source/arch/mips/brcm-boards/bcm947xx/setup.c')
-rw-r--r-- | package/linux/kernel-source/arch/mips/brcm-boards/bcm947xx/setup.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/package/linux/kernel-source/arch/mips/brcm-boards/bcm947xx/setup.c b/package/linux/kernel-source/arch/mips/brcm-boards/bcm947xx/setup.c index e1b0050a4..2132c0083 100644 --- a/package/linux/kernel-source/arch/mips/brcm-boards/bcm947xx/setup.c +++ b/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; |