diff options
author | Sebastian Andrzej Siewior <sebastian@breakpoint.cc> | 2009-06-11 22:51:12 -0400 |
---|---|---|
committer | Nicolas Pitre <nico@cam.org> | 2009-06-15 00:37:07 -0400 |
commit | 97f8a27a5cfb08c9ce3abc90aaafb791759aed94 (patch) | |
tree | a72396a128ca1e2da050a695605e7687e07380b3 /arch/arm/mach-orion5x | |
parent | 45e3e1935e2857c54783291107d33323b3ef33c8 (diff) |
[ARM] orion5x: increment window counter after adding sram mapping
Without incrementing the counter the next window setup will overwrite
the SRAM mapping.
Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
Signed-off-by: Nicolas Pitre <nico@marvell.com>
Diffstat (limited to 'arch/arm/mach-orion5x')
-rw-r--r-- | arch/arm/mach-orion5x/addr-map.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-orion5x/addr-map.c b/arch/arm/mach-orion5x/addr-map.c index 6f3f77d031d0..d78731edebb6 100644 --- a/arch/arm/mach-orion5x/addr-map.c +++ b/arch/arm/mach-orion5x/addr-map.c | |||
@@ -200,6 +200,6 @@ void __init orion5x_setup_pcie_wa_win(u32 base, u32 size) | |||
200 | 200 | ||
201 | int __init orion5x_setup_sram_win(void) | 201 | int __init orion5x_setup_sram_win(void) |
202 | { | 202 | { |
203 | return setup_cpu_win(win_alloc_count, ORION5X_SRAM_PHYS_BASE, | 203 | return setup_cpu_win(win_alloc_count++, ORION5X_SRAM_PHYS_BASE, |
204 | ORION5X_SRAM_SIZE, TARGET_SRAM, ATTR_SRAM, -1); | 204 | ORION5X_SRAM_SIZE, TARGET_SRAM, ATTR_SRAM, -1); |
205 | } | 205 | } |