aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/brcm63xx/files
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
commitc6adce11442a3cd6b04d8fff76c46db86a717451 (patch)
tree2248bdec1f8e9253fa37d5acd6d92434afb130e8 /target/linux/brcm63xx/files
parent32489e85298b277a63d020d0fadeb39816eddb62 (diff)
downloadupstream-c6adce11442a3cd6b04d8fff76c46db86a717451.tar.gz
upstream-c6adce11442a3cd6b04d8fff76c46db86a717451.tar.bz2
upstream-c6adce11442a3cd6b04d8fff76c46db86a717451.zip
Fix remaining bug of the off-by-one error ;)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13551 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/brcm63xx/files')
-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 6fb0ee1e08..b5977960bf 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) {