diff options
author | Florian Fainelli <florian@openwrt.org> | 2007-06-10 18:43:49 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2007-06-10 18:43:49 +0000 |
commit | 32833670925b998c7c9a73cdd667adb9103e21fe (patch) | |
tree | 02e7b561c06e918abcab89c4acefdc71f76a409c /target/linux/adm5120-2.6 | |
parent | d43d6515121127c4bd21dad71cc68c9a075e5fd2 (diff) | |
download | master-187ad058-32833670925b998c7c9a73cdd667adb9103e21fe.tar.gz master-187ad058-32833670925b998c7c9a73cdd667adb9103e21fe.tar.bz2 master-187ad058-32833670925b998c7c9a73cdd667adb9103e21fe.zip |
Use the flash0_size from the adm5120_board structure to correctly remap the flash (#1855)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7547 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/adm5120-2.6')
-rw-r--r-- | target/linux/adm5120-2.6/files/drivers/mtd/maps/adm5120_mtd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/adm5120-2.6/files/drivers/mtd/maps/adm5120_mtd.c b/target/linux/adm5120-2.6/files/drivers/mtd/maps/adm5120_mtd.c index 41c290b04a..230fceee21 100644 --- a/target/linux/adm5120-2.6/files/drivers/mtd/maps/adm5120_mtd.c +++ b/target/linux/adm5120-2.6/files/drivers/mtd/maps/adm5120_mtd.c @@ -407,8 +407,8 @@ int __init init_adm5120_map(void) struct mtd_partition *parts; int i, parsed_nr_parts = 0; #endif - printk("adm5120 : flash init : 0x%08x 0x%08x\n", WINDOW_ADDR, WINDOW_SIZE); - adm5120_map.virt = ioremap_nocache(WINDOW_ADDR, WINDOW_SIZE); + printk("adm5120 : flash init : 0x%08x 0x%08x\n", WINDOW_ADDR, adm5120_board.flash0_size); + adm5120_map.virt = ioremap_nocache(WINDOW_ADDR, adm5120_board.flash0_size); if (!adm5120_map.virt) { printk("Failed to ioremap\n"); |