brcm47xx: initialize mtd bankwidth to fix problems with DIR-320 and others (patch...
authorFelix Fietkau <nbd@openwrt.org>
Thu, 21 May 2009 12:01:44 +0000 (12:01 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 21 May 2009 12:01:44 +0000 (12:01 +0000)
SVN-Revision: 15959

target/linux/brcm47xx/files-2.6.28/drivers/mtd/maps/bcm47xx-flash.c

index 118d4c4fc13e67c537fc64833adc3f7b86901af0..3ceec403cf1aaea8ff39c3d729346c701f1732de 100644 (file)
@@ -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);