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]>
1 file changed