diff options
author | Florian Fainelli <florian@openwrt.org> | 2008-12-07 20:34:48 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2008-12-07 20:34:48 +0000 |
commit | f561c967a928c83c47ada6a8fa4b3fe9e1e3c255 (patch) | |
tree | 6956835a97a8994f5b7c2d51c086a06d6baca2b1 /target/linux/brcm63xx/files/drivers/mtd | |
parent | 1977abcdce395eed91c898eebb6eed74456a415d (diff) | |
download | upstream-f561c967a928c83c47ada6a8fa4b3fe9e1e3c255.tar.gz upstream-f561c967a928c83c47ada6a8fa4b3fe9e1e3c255.tar.bz2 upstream-f561c967a928c83c47ada6a8fa4b3fe9e1e3c255.zip |
Add support for bcm96348gw10 (Netgear DG834GT) (#4319)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13540 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/brcm63xx/files/drivers/mtd')
-rw-r--r-- | target/linux/brcm63xx/files/drivers/mtd/maps/bcm963xx-flash.c | 4 |
1 files changed, 2 insertions, 2 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 6f74945e58..6fb0ee1e08 100644 --- a/target/linux/brcm63xx/files/drivers/mtd/maps/bcm963xx-flash.c +++ b/target/linux/brcm63xx/files/drivers/mtd/maps/bcm963xx-flash.c @@ -156,13 +156,13 @@ 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.virt = ioremap(r->start, r->end - r->start); + bcm963xx_map.virt = ioremap(r->start, r->end - r->start + 1); if (!bcm963xx_map.virt) { printk(KERN_ERR PFX "Failed to ioremap\n"); return -EIO; } - printk(KERN_INFO PFX "0x%08x at 0x%08x\n", (r->end - r->start) + 1, r->start); + printk(KERN_INFO PFX "0x%08x at 0x%08x\n", bcm963xx_map.size, bcm963xx_map.phys); simple_map_init(&bcm963xx_map); |