revert r21085, fixes #7282
authorFlorian Fainelli <florian@openwrt.org>
Tue, 4 May 2010 08:07:39 +0000 (08:07 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Tue, 4 May 2010 08:07:39 +0000 (08:07 +0000)
SVN-Revision: 21352

target/linux/brcm63xx/patches-2.6.32/040-bcm963xx_flashmap.patch
target/linux/brcm63xx/patches-2.6.33/040-bcm963xx_flashmap.patch

index 4784de7d6a0b6f4d66d51942275af613fde0e1de..812e008a217fdb2304b21192777728f7a0912431 100644 (file)
@@ -140,7 +140,7 @@ Signed-off-by: Axel Gembe <ago@bastart.eu.org>
 +              return -ENOMEM;
 +
 +      /* Get the tag */
-+      ret = master->read(master,0x10000,sizeof(struct bcm_tag), &retlen, (void *)buf);
++      ret = master->read(master,master->erasesize,sizeof(struct bcm_tag), &retlen, (void *)buf);
 +      if (retlen != sizeof(struct bcm_tag)){
 +              vfree(buf);
 +              return -EIO;
index 6edb8c7873ad30012f23c9f1c4370a03f60b3d3f..5f3e0a273429f4a19524e9ba1d1ee0be05978d98 100644 (file)
@@ -140,7 +140,7 @@ Signed-off-by: Axel Gembe <ago@bastart.eu.org>
 +              return -ENOMEM;
 +
 +      /* Get the tag */
-+      ret = master->read(master,0x10000,sizeof(struct bcm_tag), &retlen, (void *)buf);
++      ret = master->read(master,mater->erasesize,sizeof(struct bcm_tag), &retlen, (void *)buf);
 +      if (retlen != sizeof(struct bcm_tag)){
 +              vfree(buf);
 +              return -EIO;