1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-08-20 09:44:16 +03:00

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
This commit is contained in:
florian 2007-06-10 18:43:49 +00:00
parent 538b77fe3c
commit cae2da0e30

View File

@ -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");