ralink: update patches
[openwrt.git] / target / linux / ramips / patches-3.8 / 0051-MIPS-ralink-add-missing-SZ_1M-multiplier.patch
1 From 1996ffa03b1c6e0ab7db35dfd910923f4ab54b26 Mon Sep 17 00:00:00 2001
2 From: John Crispin <blogic@openwrt.org>
3 Date: Tue, 21 May 2013 17:15:54 +0200
4 Subject: [PATCH 51/79] MIPS: ralink: add missing SZ_1M multiplier
5
6 On RT5350 the memory size is set to Bytes and not MegaBytes due to a missing
7 multiplier.
8
9 Signed-off-by: John Crispin <blogic@openwrt.org>
10 ---
11  arch/mips/ralink/of.c |    2 +-
12  1 file changed, 1 insertion(+), 1 deletion(-)
13
14 diff --git a/arch/mips/ralink/of.c b/arch/mips/ralink/of.c
15 index f916774..b25c1f2 100644
16 --- a/arch/mips/ralink/of.c
17 +++ b/arch/mips/ralink/of.c
18 @@ -88,7 +88,7 @@ void __init plat_mem_setup(void)
19         __dt_setup_arch(&__dtb_start);
20  
21         if (soc_info.mem_size)
22 -               add_memory_region(soc_info.mem_base, soc_info.mem_size,
23 +               add_memory_region(soc_info.mem_base, soc_info.mem_size * SZ_1M,
24                                   BOOT_MEM_RAM);
25         else
26                 detect_memory_region(soc_info.mem_base,
27 -- 
28 1.7.10.4
29