diff options
author | jogo <jogo@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-07-03 21:42:12 +0000 |
---|---|---|
committer | jogo <jogo@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-07-03 21:42:12 +0000 |
commit | c60cd5dd54790d032d6fe41b75253e76a7c8e5a2 (patch) | |
tree | df62463efe19fa9bc0eff616ed9b5ea83db9fee9 /target/linux/brcm63xx/patches-3.3/429-MTD-bcm63xxpart-allow-passing-a-caldata-offset.patch | |
parent | cc1b8fb1cb225208e797bf235ccc8dd45219c74d (diff) |
bcm63xx: fix second caldata address calculation
thanks Noltari for spotting this.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32592 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/brcm63xx/patches-3.3/429-MTD-bcm63xxpart-allow-passing-a-caldata-offset.patch')
-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 7337fa739..681bab248 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) { |