fdt_support: Don't panic if stdout alias is missing
authorScott Wood <scottwood@freescale.com>
Wed, 2 Sep 2015 03:48:08 +0000 (22:48 -0500)
committerYork Sun <yorksun@freescale.com>
Mon, 26 Oct 2015 16:09:54 +0000 (09:09 -0700)
commitda77c819903be2c179f67b37f9285ce39ebd3c5d
treee25794ed82d46255fca9331df216fe4954a36e42
parent6b6db0d50905153172f13b7914597a487654af6c
fdt_support: Don't panic if stdout alias is missing

Currently, using fdt_fixup_stdout() on a device tree that is missing
the relevant alias results in this:

WARNING: could not set linux,stdout-path FDT_ERR_NOTFOUND.
ERROR: /chosen node create failed
 - must RESET the board to recover.

FDT creation failed! hanging...### ERROR ### Please RESET the board ###

There is no reason for this to be a fatal error rather than a warning,
and removing this allows for a smooth transition on a platform where
the device tree currently lacks the correct aliases but will have them
in the future.

Signed-off-by: Scott Wood <scottwood@freescale.com>
Cc: Kumar Gala <galak@kernel.crashing.org>
Cc: Simon Glass <sjg@chromium.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: York Sun <yorksun@freescale.com>
common/fdt_support.c