From: John Crispin Date: Thu, 6 Jun 2013 12:55:53 +0000 (+0000) Subject: MIPS: ralink: add missing SZ_1M multiplier X-Git-Tag: v3.10-rc5~5^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cdfce53986a39daf039b62b69026867734d8430a;p=profile%2Fivi%2Fkernel-x86-ivi.git MIPS: ralink: add missing SZ_1M multiplier On RT5350 the memory size is set to Bytes and not MegaBytes due to a missing multiplier. Signed-off-by: John Crispin Cc: John Crispin Patchwork: https://patchwork.linux-mips.org/patch/5378/ Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/ralink/of.c b/arch/mips/ralink/of.c index fb15695..6b5f340 100644 --- a/arch/mips/ralink/of.c +++ b/arch/mips/ralink/of.c @@ -88,7 +88,7 @@ void __init plat_mem_setup(void) __dt_setup_arch(&__dtb_start); if (soc_info.mem_size) - add_memory_region(soc_info.mem_base, soc_info.mem_size, + add_memory_region(soc_info.mem_base, soc_info.mem_size * SZ_1M, BOOT_MEM_RAM); else detect_memory_region(soc_info.mem_base,