From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jerry Van Baren Date: Mon, 06 May 2013 19:41:00 -0400 Subject: [U-Boot] [PATCH v3 07/17] fdt: Add a parameter to fdt_valid() In-Reply-To: <1366483372-16523-8-git-send-email-sjg@chromium.org> References: <1366483372-16523-1-git-send-email-sjg@chromium.org> <1366483372-16523-8-git-send-email-sjg@chromium.org> Message-ID: <51883F8C.50600@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 04/20/2013 02:42 PM, Simon Glass wrote: > At present this only checks working_fdt, but we want to check other FDTs > also. So add the FDT to check as a parameter to fdt_valid(). > > Signed-off-by: Simon Glass Acked-by: Gerald Van Baren > --- > Changes in v3: None > Changes in v2: > - fdt_valid() sets the FDT pointer to NULL on error, to simplify callers > - Allow the control FDT to be set even if there is currently no control FDT > > common/cmd_fdt.c | 38 ++++++++++++++++++++------------------ > 1 file changed, 20 insertions(+), 18 deletions(-)