X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/6489001dd8255d821f3e64f8cf2f7e811f6ccb53..2364018d031ff8ed14ac1bf7b2841983729568d9:/target/linux/brcm63xx/files/drivers/mtd/maps/bcm963xx-flash.c?ds=sidebyside 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 6fb0ee1e0..b5977960b 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) {