summaryrefslogtreecommitdiff
path: root/target/linux/brcm63xx
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2008-12-08 21:00:00 +0000
committerFlorian Fainelli <florian@openwrt.org>2008-12-08 21:00:00 +0000
commit6acf4c2a19d8855c539d4a33d2845e7fff7bde89 (patch)
tree8a658c018f93fa5bd6cb0beeb2821df1b1d678b3 /target/linux/brcm63xx
parent4fad1b5898726e95cdd5dfd625fd8f413becb8b7 (diff)
downloadmtk-20170518-6acf4c2a19d8855c539d4a33d2845e7fff7bde89.zip
mtk-20170518-6acf4c2a19d8855c539d4a33d2845e7fff7bde89.tar.gz
mtk-20170518-6acf4c2a19d8855c539d4a33d2845e7fff7bde89.tar.bz2
Fix remaining bug of the off-by-one error ;)
SVN-Revision: 13551
Diffstat (limited to 'target/linux/brcm63xx')
-rw-r--r--target/linux/brcm63xx/files/drivers/mtd/maps/bcm963xx-flash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/brcm63xx/files/drivers/mtd/maps/bcm963xx-flash.c b/target/linux/brcm63xx/files/drivers/mtd/maps/bcm963xx-flash.c
index 6fb0ee1..b597796 100644
--- a/target/linux/brcm63xx/files/drivers/mtd/maps/bcm963xx-flash.c
+++ b/target/linux/brcm63xx/files/drivers/mtd/maps/bcm963xx-flash.c
@@ -155,7 +155,7 @@ static int bcm963xx_probe(struct platform_device *pdev)
r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
bcm963xx_map.phys = r->start;
- bcm963xx_map.size = (r->end - r->start);
+ bcm963xx_map.size = (r->end - r->start) + 1;
bcm963xx_map.virt = ioremap(r->start, r->end - r->start + 1);
if (!bcm963xx_map.virt) {