From: yegorslists at googlemail.com Date: Mon, 4 May 2015 09:53:26 +0200 Subject: [U-Boot] [RFC] FIT: use default configuration, if given configuration is not found In-Reply-To: <1430726006-13474-1-git-send-email-yegorslists@googlemail.com> References: <1430726006-13474-1-git-send-email-yegorslists@googlemail.com> Message-ID: <1430726006-13474-2-git-send-email-yegorslists@googlemail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de From: Yegor Yefremov Signed-off-by: Yegor Yefremov --- common/image-fit.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/common/image-fit.c b/common/image-fit.c index c61be65..b892d06 100644 --- a/common/image-fit.c +++ b/common/image-fit.c @@ -1547,6 +1547,10 @@ int fit_image_load(bootm_headers_t *images, ulong addr, } else { cfg_noffset = fit_conf_get_node(fit, fit_uname_config); + + if (cfg_noffset < 0) { + cfg_noffset = fit_conf_get_node(fit, NULL); + } } if (cfg_noffset < 0) { puts("Could not find configuration node\n"); -- 1.7.7