From patchwork Mon May 4 07:53:26 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yegor Yefremov X-Patchwork-Id: 467518 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 81A88140285 for ; Mon, 4 May 2015 18:22:30 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 5421D4B837; Mon, 4 May 2015 10:22:24 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id igxahvpylcHX; Mon, 4 May 2015 10:22:24 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 8FEF24B83C; Mon, 4 May 2015 10:22:19 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 6D0774B81F for ; Mon, 4 May 2015 10:22:15 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lGSPKi-2s3g1 for ; Mon, 4 May 2015 10:22:15 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail.visionsystems.de (mail.visionsystems.de [213.209.99.202]) by theia.denx.de (Postfix) with ESMTP id 402AB4B81C for ; Mon, 4 May 2015 10:22:11 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.visionsystems.de (Postfix) with ESMTP id 022D0309E3C; Mon, 4 May 2015 09:54:06 +0200 (CEST) Received: from mail.visionsystems.de ([127.0.0.1]) by localhost (mail.visionsystems.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 10663-03; Mon, 4 May 2015 09:53:40 +0200 (CEST) Received: from visionsystems.de (kallisto.visionsystems.local [192.168.1.3]) by mail.visionsystems.de (Postfix) with ESMTP id 2831A309E37; Mon, 4 May 2015 09:53:40 +0200 (CEST) Received: from development1.visionsystems.local ([192.168.1.36]) by visionsystems.de with Microsoft SMTPSVC(6.0.3790.4675); Mon, 4 May 2015 09:53:38 +0200 From: yegorslists@googlemail.com To: u-boot@lists.denx.de Date: Mon, 4 May 2015 09:53:26 +0200 Message-Id: <1430726006-13474-2-git-send-email-yegorslists@googlemail.com> X-Mailer: git-send-email 1.7.7 In-Reply-To: <1430726006-13474-1-git-send-email-yegorslists@googlemail.com> References: <1430726006-13474-1-git-send-email-yegorslists@googlemail.com> X-OriginalArrivalTime: 04 May 2015 07:53:38.0819 (UTC) FILETIME=[6E786530:01D0863F] X-Virus-Scanned: amavisd-new at visionsystems.de Subject: [U-Boot] [RFC] FIT: use default configuration, if given configuration is not found X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" 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");