colibri_imx6: fix video stdout in default environment
[oweals/u-boot.git] / common / image-cipher.c
index cee3b03ee50622c95ce59d9da8f3e0c4f369afe2..09869f78464402a9c005122e5380b2d543b6dcf6 100644 (file)
@@ -10,7 +10,7 @@
 #include <common.h>
 #include <malloc.h>
 DECLARE_GLOBAL_DATA_PTR;
-#endif /* !USE_HOSTCC*/
+#endif /* !USE_HOSdTCC*/
 #include <image.h>
 #include <uboot_aes.h>
 #include <u-boot/aes.h>
@@ -88,7 +88,7 @@ static int fit_image_setup_decrypt(struct image_cipher_info *info,
                return -1;
        }
 
-       info->keyname = fdt_getprop(fit, cipher_noffset, "key-name-hint", NULL);
+       info->keyname = fdt_getprop(fit, cipher_noffset, FIT_KEY_HINT, NULL);
        if (!info->keyname) {
                printf("Can't get key name\n");
                return -1;