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)
committerMark Brown <broonie@linaro.org>
Thu, 24 Jul 2014 18:57:20 +0000 (19:57 +0100)
commitb94c8bedffeabb49f57bed9de17030f2addd21a0
tree4fc95116aae683d12b5cd4757bed6aa3f11817c8
parent7c828dcc5ce4d19c7863ec204cac0dea341e347f
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 <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>
(cherry picked from commit 2040b52768ebab6e7bd73af0dc63703269c62f17)
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/of/fdt.c