summaryrefslogtreecommitdiff
path: root/target/linux/brcm47xx/files-2.6.28/drivers/mtd/maps
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-05-21 12:01:44 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-05-21 12:01:44 +0000
commitd0826032e641a26bba3712d8fbb6a8b32961a014 (patch)
tree00dc107984d80d26d21e2bf3f5cde670cde19152 /target/linux/brcm47xx/files-2.6.28/drivers/mtd/maps
parent641c4de73d58ad2617fbee9448b9aac0c8cb89a4 (diff)
brcm47xx: initialize mtd bankwidth to fix problems with DIR-320 and others (patch from #4729)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15959 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/brcm47xx/files-2.6.28/drivers/mtd/maps')
-rw-r--r--target/linux/brcm47xx/files-2.6.28/drivers/mtd/maps/bcm47xx-flash.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/target/linux/brcm47xx/files-2.6.28/drivers/mtd/maps/bcm47xx-flash.c b/target/linux/brcm47xx/files-2.6.28/drivers/mtd/maps/bcm47xx-flash.c
index 118d4c4fc1..3ceec403cf 100644
--- a/target/linux/brcm47xx/files-2.6.28/drivers/mtd/maps/bcm47xx-flash.c
+++ b/target/linux/brcm47xx/files-2.6.28/drivers/mtd/maps/bcm47xx-flash.c
@@ -378,6 +378,7 @@ int __init init_bcm47xx_map(void)
printk("flash init: 0x%08x 0x%08x\n", window, window_size);
bcm47xx_map.phys = window;
bcm47xx_map.size = window_size;
+ bcm47xx_map.bankwidth = mcore->flash_buswidth;
bcm47xx_map.virt = ioremap_nocache(window, window_size);
#else
printk("flash init: 0x%08x 0x%08x\n", WINDOW_ADDR, WINDOW_SIZE);