projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
backport ipv6 security fix to 2.4 (#4245)
[openwrt.git]
/
target
/
linux
/
brcm63xx
/
files
/
drivers
/
mtd
/
maps
/
bcm963xx-flash.c
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
0d5bd84
..
b597796
100644
(file)
--- a/
target/linux/brcm63xx/files/drivers/mtd/maps/bcm963xx-flash.c
+++ b/
target/linux/brcm63xx/files/drivers/mtd/maps/bcm963xx-flash.c
@@
-155,14
+155,14
@@
static int bcm963xx_probe(struct platform_device *pdev)
r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
bcm963xx_map.phys = r->start;
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.size = (r->end - r->start)
+ 1
;
+ 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;
}
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, r->start
);
+ printk(KERN_INFO PFX "0x%08x at 0x%08x\n",
bcm963xx_map.size, bcm963xx_map.phys
);
simple_map_init(&bcm963xx_map);
simple_map_init(&bcm963xx_map);
This page took
0.028609 seconds
and
4
git commands to generate.