Fix an off-by one printing error
[openwrt.git] / target / linux / brcm63xx / files / drivers / mtd / maps / bcm963xx-flash.c
index 0d5bd84..6f74945 100644 (file)
@@ -162,7 +162,7 @@ static int bcm963xx_probe(struct platform_device *pdev)
                printk(KERN_ERR PFX "Failed to ioremap\n");
                return -EIO;
        }
-       printk(KERN_INFO PFX "0x%08x at 0x%08x\n", r->end - r->start, r->start);
+       printk(KERN_INFO PFX "0x%08x at 0x%08x\n", (r->end - r->start) + 1, r->start);
 
        simple_map_init(&bcm963xx_map);