From: Sebastian Andrzej Siewior Date: Fri, 12 Jun 2009 02:51:12 +0000 (-0400) Subject: [ARM] orion5x: increment window counter after adding sram mapping X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=97f8a27a5cfb08c9ce3abc90aaafb791759aed94;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [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 Signed-off-by: Nicolas Pitre --- 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) int __init orion5x_setup_sram_win(void) { - return setup_cpu_win(win_alloc_count, ORION5X_SRAM_PHYS_BASE, + return setup_cpu_win(win_alloc_count++, ORION5X_SRAM_PHYS_BASE, ORION5X_SRAM_SIZE, TARGET_SRAM, ATTR_SRAM, -1); }