Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 <blogic@openwrt.org>
Cc: John Crispin <blogic@openwrt.org>
Patchwork: https://patchwork.linux-mips.org/patch/5378/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

authored by

John Crispin and committed by
Ralf Baechle
cdfce539 7b741aa4

+1 -1
+1 -1
arch/mips/ralink/of.c
··· 88 88 __dt_setup_arch(&__dtb_start); 89 89 90 90 if (soc_info.mem_size) 91 - add_memory_region(soc_info.mem_base, soc_info.mem_size, 91 + add_memory_region(soc_info.mem_base, soc_info.mem_size * SZ_1M, 92 92 BOOT_MEM_RAM); 93 93 else 94 94 detect_memory_region(soc_info.mem_base,