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)
commit2040b52768ebab6e7bd73af0dc63703269c62f17
tree3f9600db68fc26ef56b775956d7fbe1c7d4b8aa9
parent708b7eef12f945a510ba5ac3b4007d7ae4796d55
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>
drivers/of/fdt.c