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

of/fdt: Scan the root node properties earlier

Scan the root node properties (#{size,address}-cells) earlier, so that
the dt_root_addr_cells and dt_root_size_cells variables are initialized
and can be used.

Link: https://lore.kernel.org/all/20180830190523.31474-2-robh@kernel.org/
Signed-off-by: Rob Herring <robh@kernel.org>

+4 -3
+4 -3
drivers/of/fdt.c
··· 1170 1170 initial_boot_params = params; 1171 1171 of_fdt_crc32 = crc32_be(~0, initial_boot_params, 1172 1172 fdt_totalsize(initial_boot_params)); 1173 + 1174 + /* Initialize {size,address}-cells info */ 1175 + early_init_dt_scan_root(); 1176 + 1173 1177 return true; 1174 1178 } 1175 1179 ··· 1181 1177 void __init early_init_dt_scan_nodes(void) 1182 1178 { 1183 1179 int rc; 1184 - 1185 - /* Initialize {size,address}-cells info */ 1186 - early_init_dt_scan_root(); 1187 1180 1188 1181 /* Retrieve various information from the /chosen node */ 1189 1182 rc = early_init_dt_scan_chosen(boot_command_line);