From: John Keeping Date: Fri, 25 Jun 2021 16:58:04 +0000 (+0100) Subject: fit: Allow external data for FDTs X-Git-Url: http://git.dujemihanovic.xyz/img/sics.gif?a=commitdiff_plain;h=650bf008e57a98cd6fa89839d48561dfdc5c51e7;p=u-boot.git fit: Allow external data for FDTs Switch to fit_image_get_data_and_size() for consistency with all other data loaded from FIT. Signed-off-by: John Keeping Reviewed-by: Simon Glass --- diff --git a/common/image-fit.c b/common/image-fit.c index 28bd8e78c7..d6b2c3c7ec 100644 --- a/common/image-fit.c +++ b/common/image-fit.c @@ -1777,7 +1777,8 @@ int fit_conf_find_compat(const void *fit, const void *fdt) } /* search in this config's kernel FDT */ - if (fit_image_get_data(fit, kfdt_noffset, &fdt, &sz)) { + if (fit_image_get_data_and_size(fit, kfdt_noffset, + &fdt, &sz)) { debug("Failed to get fdt \"%s\".\n", kfdt_name); continue; }