fit: Allow external data for FDTs
authorJohn Keeping <john@metanate.com>
Fri, 25 Jun 2021 16:58:04 +0000 (17:58 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 23 Jul 2021 11:13:25 +0000 (07:13 -0400)
Switch to fit_image_get_data_and_size() for consistency with all other
data loaded from FIT.

Signed-off-by: John Keeping <john@metanate.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
common/image-fit.c

index 28bd8e78c75e129ece08dfeca4869d551b67259b..d6b2c3c7ecab57dba2bdd871e549db92b60d9c3a 100644 (file)
@@ -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;
                        }