of: only scan for reserved mem when fdt present
authorJosh Cartwright <joshc@codeaurora.org>
Thu, 13 Mar 2014 21:36:36 +0000 (16:36 -0500)
committerGrant Likely <grant.likely@linaro.org>
Sat, 15 Mar 2014 12:38:22 +0000 (12:38 +0000)
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 <khilman@linaro.org>
Signed-off-by: Josh Cartwright <joshc@codeaurora.org>
Tested-by: Kevin Hilman <khilman@linaro.org>
Signed-off-by: Grant Likely <grant.likely@linaro.org>
drivers/of/fdt.c

Simple merge