summaryrefslogtreecommitdiff
path: root/target
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2007-06-10 18:43:49 +0000
committerFlorian Fainelli <florian@openwrt.org>2007-06-10 18:43:49 +0000
commitce6260adbccb7dc19ae73355a7f92361ce57ff3b (patch)
treee890489335c75f3eb3fb3e5748da6bcbbc7158df /target
parent1c7ba68cb86c642b9f6cf878b345cb051848a827 (diff)
downloadmtk-20170518-ce6260adbccb7dc19ae73355a7f92361ce57ff3b.zip
mtk-20170518-ce6260adbccb7dc19ae73355a7f92361ce57ff3b.tar.gz
mtk-20170518-ce6260adbccb7dc19ae73355a7f92361ce57ff3b.tar.bz2
Use the flash0_size from the adm5120_board structure to correctly remap the flash (#1855)
SVN-Revision: 7547
Diffstat (limited to 'target')
-rw-r--r--target/linux/adm5120-2.6/files/drivers/mtd/maps/adm5120_mtd.c4
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 41c290b..230fcee 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");