mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
of: only scan for reserved mem when fdt present
When the reserved memory patches hit -next, several legacy (non-DT) boot failures were detected and bisected down to that commit. There needs to be some sanity checking whether a DT is even present before parsing the reserved ranges. Reported-by: Kevin Hilman <[email protected]> Signed-off-by: Josh Cartwright <[email protected]> Tested-by: Kevin Hilman <[email protected]> Signed-off-by: Grant Likely <[email protected]>
This commit is contained in:
parent
708b7eef12
commit
2040b52768
1 changed files with 3 additions and 0 deletions
|
|
@ -557,6 +557,9 @@ static int __init __fdt_scan_reserved_mem(unsigned long node, const char *uname,
|
|||
*/
|
||||
void __init early_init_fdt_scan_reserved_mem(void)
|
||||
{
|
||||
if (!initial_boot_params)
|
||||
return;
|
||||
|
||||
of_scan_flat_dt(__fdt_scan_reserved_mem, NULL);
|
||||
fdt_init_reserved_mem();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue