X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/4f531230a3c9c8984c5a8e8b38874be7f608f2d1..0cfd99d729c2d53031c2d564a4b70760eb1a7c30:/package/linux/kernel-source/arch/mips/brcm-boards/bcm947xx/setup.c 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;