The 'standalone =' config property has been deprecated for ~5 years [1],
with the loud warn about the deprecation lasting much more than the
foreseen couple of releases.

Remove the attempt to load the primary image through this property to
save some boot time and code complexity.

[1] 
https://lore.kernel.org/u-boot/[email protected]/

Signed-off-by: Francesco Valla <[email protected]>
---
 common/spl/spl_fit.c | 15 +++------------
 1 file changed, 3 insertions(+), 12 deletions(-)

diff --git a/common/spl/spl_fit.c b/common/spl/spl_fit.c
index 1f3f7e549502..e1c8b1c9b698 100644
--- a/common/spl/spl_fit.c
+++ b/common/spl/spl_fit.c
@@ -959,18 +959,9 @@ int spl_load_fit_image(struct spl_image_info *spl_image,
        images.verify = 1;
 #endif
        ret = fit_image_load(&images, virt_to_phys((void *)header),
-                            NULL, &fit_uname_config,
-                            IH_ARCH_DEFAULT, IH_TYPE_STANDALONE, -1,
-                            FIT_LOAD_OPTIONAL, &fw_data, &fw_len);
-       if (ret >= 0) {
-               printf("DEPRECATED: 'standalone = ' property.");
-               printf("Please use either 'firmware =' or 'kernel ='\n");
-       } else {
-               ret = fit_image_load(&images, virt_to_phys((void *)header),
-                                    NULL, &fit_uname_config, IH_ARCH_DEFAULT,
-                                    IH_TYPE_FIRMWARE, -1, FIT_LOAD_OPTIONAL,
-                                    &fw_data, &fw_len);
-       }
+                            NULL, &fit_uname_config, IH_ARCH_DEFAULT,
+                            IH_TYPE_FIRMWARE, -1, FIT_LOAD_OPTIONAL,
+                            &fw_data, &fw_len);
 
        if (ret < 0) {
                ret = fit_image_load(&images, virt_to_phys((void *)header),

-- 
2.54.0

Reply via email to