kernel: move CONFIG_NET_IP_TUNNEL to generic
[openwrt.git] / target / linux / ramips / patches-3.9 / 0135-MIPS-ralink-add-missing-SZ_1M-multiplier.patch
1 From 4a8fcf59741a8b71f97823c31d461fa6d9089cb0 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 135/164] 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 --- a/arch/mips/ralink/of.c
15 +++ b/arch/mips/ralink/of.c
16 @@ -88,7 +88,7 @@ void __init plat_mem_setup(void)
17         __dt_setup_arch(&__dtb_start);
18  
19         if (soc_info.mem_size)
20 -               add_memory_region(soc_info.mem_base, soc_info.mem_size,
21 +               add_memory_region(soc_info.mem_base, soc_info.mem_size * SZ_1M,
22                                   BOOT_MEM_RAM);
23         else
24                 detect_memory_region(soc_info.mem_base,