diff options
author | Jonas Gorski <jogo@openwrt.org> | 2012-07-03 21:42:12 +0000 |
---|---|---|
committer | Jonas Gorski <jogo@openwrt.org> | 2012-07-03 21:42:12 +0000 |
commit | 0c7e6763420070554934448881633f48e21602c9 (patch) | |
tree | 3412037987a14dec9c4d430144fe2879ffc45f1a /target/linux/brcm63xx/patches-3.3 | |
parent | 988147111c71cc07c0e2080424c201cd4ded7150 (diff) | |
download | mtk-20170518-0c7e6763420070554934448881633f48e21602c9.zip mtk-20170518-0c7e6763420070554934448881633f48e21602c9.tar.gz mtk-20170518-0c7e6763420070554934448881633f48e21602c9.tar.bz2 |
bcm63xx: fix second caldata address calculation
thanks Noltari for spotting this.
SVN-Revision: 32592
Diffstat (limited to 'target/linux/brcm63xx/patches-3.3')
-rw-r--r-- | target/linux/brcm63xx/patches-3.3/429-MTD-bcm63xxpart-allow-passing-a-caldata-offset.patch | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/brcm63xx/patches-3.3/429-MTD-bcm63xxpart-allow-passing-a-caldata-offset.patch b/target/linux/brcm63xx/patches-3.3/429-MTD-bcm63xxpart-allow-passing-a-caldata-offset.patch index 7337fa7..681bab2 100644 --- a/target/linux/brcm63xx/patches-3.3/429-MTD-bcm63xxpart-allow-passing-a-caldata-offset.patch +++ b/target/linux/brcm63xx/patches-3.3/429-MTD-bcm63xxpart-allow-passing-a-caldata-offset.patch @@ -33,7 +33,7 @@ contained in flash. + } + if (data->caldata[1]) { + caldatalen2 = cfe_erasesize; -+ caldataaddr1 = rounddown(data->caldata[1], ++ caldataaddr2 = rounddown(data->caldata[1], + cfe_erasesize); + } + if (caldataaddr1 == caldataaddr2) { |