bcm63xx: fix second caldata address calculation
authorJonas Gorski <jogo@openwrt.org>
Tue, 3 Jul 2012 21:42:12 +0000 (21:42 +0000)
committerJonas Gorski <jogo@openwrt.org>
Tue, 3 Jul 2012 21:42:12 +0000 (21:42 +0000)
thanks Noltari for spotting this.

SVN-Revision: 32592

target/linux/brcm63xx/patches-3.3/429-MTD-bcm63xxpart-allow-passing-a-caldata-offset.patch

index 7337fa739a588ad75730f5faa20415fdef5389f3..681bab2488f574cafade92599ba9383ae7621a29 100644 (file)
@@ -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) {